Skip to content

Commit

Permalink
Merge pull request #41 from qmfrederik/features/ci
Browse files Browse the repository at this point in the history
Add GitHub Actions
  • Loading branch information
fredkiefer authored Sep 28, 2023
2 parents 909bd06 + af84372 commit 7c0c511
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
pull_request:

jobs:
########### Linux ###########
linux:
name: ci
runs-on: ubuntu-latest

container:
image: ubuntu:22.04

# don't run pull requests from local branches twice
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository

env:
DEBIAN_FRONTEND: noninteractive

steps:
- uses: actions/checkout@v3

- name: Install packages
run: |
apt-get -q -y update
apt-get -q -y install libgnustep-gui-dev libfreetype-dev libcairo2-dev libxt-dev pkg-config build-essential
- name: Build source
run: |
. /usr/share/GNUstep/Makefiles/GNUstep.sh
./configure
make && make install
- name: Run tests
run: |
. /usr/share/GNUstep/Makefiles/GNUstep.sh
make check

0 comments on commit 7c0c511

Please sign in to comment.