From 5d42570e4b7ed3d1c6722e86678e95aba1d07e70 Mon Sep 17 00:00:00 2001 From: Antti Korpimäki Date: Fri, 25 Jun 2021 19:29:04 +0200 Subject: CI: Swap Travis for GH Actions I think this is the right way to express this, let's see what Github's build server thinks. --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..da0039f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +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: + 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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7d21caa..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -dist: focal -language: c -compiler: - - clang - - gcc -script: - - make -addons: - apt: - update: true - packages: - - libx11-dev - - libxi-dev -- cgit v1.3-2-g0d8e From 1ca8f24173640706fa98905b50cf57f390c41a81 Mon Sep 17 00:00:00 2001 From: Antti Korpimäki Date: Fri, 25 Jun 2021 19:32:14 +0200 Subject: CI: Forgot this keyword, let's try again --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da0039f..986682c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: build: runs-on: ubuntu-latest strategy: + matrix: compiler: [gcc, clang] steps: - uses: actions/checkout@v2 -- cgit v1.3-2-g0d8e From 1227c1790b0eb792e15a6d9f069ce7501375f3d6 Mon Sep 17 00:00:00 2001 From: Antti Korpimäki Date: Fri, 25 Jun 2021 19:36:44 +0200 Subject: Readme: Swap build badge backend for GH Actions --- readme.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.markdown b/readme.markdown index 45fb9cb..34ba6b9 100644 --- a/readme.markdown +++ b/readme.markdown @@ -1,4 +1,4 @@ -# xkbcat [![](https://img.shields.io/travis/anko/xkbcat/master?style=flat-square)](https://travis-ci.org/anko/xkbcat) ![](https://img.shields.io/github/languages/code-size/anko/xkbcat?style=flat-square) +# xkbcat [![](https://img.shields.io/github/workflow/status/anko/xkbcat/CI/master?style=flat-square)](https://github.com/anko/xkbcat/actions) ![](https://img.shields.io/github/languages/code-size/anko/xkbcat?style=flat-square) Simple X11 keylogger. -- cgit v1.3-2-g0d8e