summaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorGravatar Antti Korpimäki2021-06-25 19:38:39 +0200
committerGravatar Antti Korpimäki2021-06-25 19:38:39 +0200
commit7250b16c9e3e40c51f43aee38de8e480c2aa8d27 (patch)
treebf663aae2e5caf1cfb1c19a9838bb1de46ccc1ab /.github/workflows
parent03e7d54ee8ad74264bbaeaf529a4692dbd75de5c (diff)
parent1227c1790b0eb792e15a6d9f069ce7501375f3d6 (diff)
downloadxkbcat-7250b16c9e3e40c51f43aee38de8e480c2aa8d27.tar.gz
xkbcat-7250b16c9e3e40c51f43aee38de8e480c2aa8d27.zip
Merge branch 'build-with-gh-actions'
Since Travis won't run the build anymore (unless I register for the new .com one that is annoying for OSdev), going for Github Actions instead.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..986682c
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,26 @@
+name: CI
+
+on:
+ # Trigger on push and pull-request events, on any branch
+ push:
+ pull_request:
+
+ # Can be run manually from the Actions tab
+ workflow_dispatch:
+
+ # Automatically rerun at 13:00 on the 10th day of each month
+ schedule:
+ - cron: '00 13 10 * *'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ compiler: [gcc, clang]
+ steps:
+ - uses: actions/checkout@v2
+ - name: install dependencies
+ run: sudo apt-get install libx11-dev libxi-dev
+ - name: make
+ run: CC=${{ matrix.compiler }} make