summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTina Müller (tinita) <cpan2@tinita.de>2020-05-29 21:39:56 +0200
committerGitHub <noreply@github.com>2020-05-29 21:39:56 +0200
commit9deee01508bb3b8ad25822f53d91d9f54eae9a0b (patch)
tree97ad45d1e4045c20961d5a4f03551d1b2680fbaa
parent0032321756cee86a67171de425267c1d0d406092 (diff)
downloadlibyaml-git-9deee01508bb3b8ad25822f53d91d9f54eae9a0b.tar.gz
Use GitHub Actions (#184)
-rw-r--r--.github/workflows/main.yml57
-rw-r--r--.travis.yml1
2 files changed, 58 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..0bc3941
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,57 @@
+name: linux/mac
+
+on:
+ push:
+ branches: [ '*' ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+
+ build:
+
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ compiler:
+ - gcc
+ - clang
+ os:
+ - ubuntu-latest
+ - macOS-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - run: env | sort
+ - name: Install software
+ run: |
+ if [[ '${{ matrix.os }}' == macOS-latest ]]; then
+ brew install automake coreutils
+ fi
+ - name: Fetch branches
+ run: |
+ git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
+ git fetch --unshallow
+
+ - run: ./bootstrap
+ - run: ./configure
+ - run: make
+ - run: make test-all
+
+ - run: |
+ git clean -d -x -f
+ rm -fr tests/run-test-suite
+ git worktree prune
+
+ - name: Compiler version
+ run: ${{ matrix.compiler }} --version
+ env:
+ CC: ${{ matrix.compiler }}
+ - run: cmake .
+ env:
+ CC: ${{ matrix.compiler }}
+ - run: make
+ env:
+ CC: ${{ matrix.compiler }}
+ - run: make test
diff --git a/.travis.yml b/.travis.yml
index 835a0e9..dca3bc7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,6 +18,7 @@ before_install:
# Travis branch-specific clone problem workaround:
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch
+- env | sort
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
pip install --user scikit-ci-addons==0.15.0;