aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2021-04-03 14:09:49 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2021-04-03 18:12:31 -0400
commit3e8bba2fd1e71899adaa88fc1fbdeacd7b51815e (patch)
tree45bc43bb33938f31ab282ba59862fa965ab40da5
parentb36e603997e5534b9173d4e0de856309d7d56b3d (diff)
downloadcalcurse-3e8bba2fd1e71899adaa88fc1fbdeacd7b51815e.tar.gz
calcurse-3e8bba2fd1e71899adaa88fc1fbdeacd7b51815e.zip
Replace Travis CI with GitHub Actions configuration
Replace the Travis CI configuration with an equivalent GitHub Actions workflow. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--.github/workflows/make.yml49
-rw-r--r--.travis.yml23
2 files changed, 49 insertions, 23 deletions
diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml
new file mode 100644
index 0000000..cbbe996
--- /dev/null
+++ b/.github/workflows/make.yml
@@ -0,0 +1,49 @@
+name: Build and test
+
+on:
+ push:
+ branches: [master, pu]
+ paths-ignore:
+ - 'contrib/**'
+ - 'doc/**'
+ - 'po/**'
+ pull_request:
+ branches: [master, pu]
+ paths-ignore:
+ - 'contrib/**'
+ - 'doc/**'
+ - 'po/**'
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ os: ['ubuntu-latest', 'macos-latest']
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install dependencies (Ubuntu)
+ run: sudo apt-get install asciidoc autopoint gettext xmlto
+ if: matrix.os == 'ubuntu-latest'
+ - name: Install dependencies (MacOS)
+ run: |
+ brew update
+ brew install automake
+ brew install asciidoc
+ brew install gettext
+ brew install xmlto
+ brew link --force gettext
+ sudo mkdir /etc/xml
+ sudo ln -s /usr/local/etc/xml/catalog /etc/xml/catalog
+ if: matrix.os == 'macos-latest'
+ - name: autogen.sh
+ run: ./autogen.sh
+ - name: configure
+ run: ./configure
+ - name: make
+ run: make
+ - name: make check
+ run: make check
+ - name: make distcheck
+ run: make distcheck
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 47d27fe..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-language: c
-
-os:
- - linux
- - osx
-
-addons:
- apt:
- packages:
- - asciidoc
- - autopoint
- - xmlto
-
-before_install:
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install asciidoc; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gettext; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install xmlto; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force gettext; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo mkdir /etc/xml; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo ln -s /usr/local/etc/xml/catalog /etc/xml/catalog; fi
-
-script: ./autogen.sh && ./configure && make && make check