summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2020-12-27 23:34:33 +0100
committerSebastian Pipping <sebastian@pipping.org>2020-12-28 00:36:03 +0100
commit7b9c444dcf1c0b95e71e844f9e8a7537026337e9 (patch)
tree7238a994389a5d25fb06bdc80deef06165ea86fc /.github
parentad28b54fc2e3962bd58025c8cdd8482d76851e8b (diff)
downloadlibexpat-git-7b9c444dcf1c0b95e71e844f9e8a7537026337e9.tar.gz
Use GitHub Actions to run current macOS Travis CI tasksmove-macos-travis-to-github-actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/macos.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644
index 00000000..77aaaea6
--- /dev/null
+++ b/.github/workflows/macos.yml
@@ -0,0 +1,36 @@
+# Copyright (C) 2020 Sebastian Pipping <sebastian@pipping.org>
+# Licensed under the MIT license
+
+name: Run macOS Travis CI tasks
+
+on:
+- pull_request
+- push
+
+jobs:
+ checks:
+ name: Perform checks
+ strategy:
+ matrix:
+ include:
+ # NOTE: This is a quick port from .travis.yml in reaction to
+ # Homebrew issues at Travis CI. While we have the matrix
+ # in two places, please keep the two files in sync. Thank you!
+ - MODE: cmake-oos
+ - MODE: distcheck
+ - MODE: qa-sh
+ FLAT_ENV: CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address
+ - MODE: cppcheck
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v2.3.4
+ - name: Install build dependencies
+ run: |
+ sudo rm /usr/local/bin/2to3 # so that "brew link" will work
+ brew bundle # acts upon file Brewfile
+ - name: Perform check "${{ matrix.MODE }}"
+ env:
+ MODE: ${{ matrix.MODE }}
+ TRAVIS_OS_NAME: osx
+ run: |
+ env ${{ matrix.FLAT_ENV }} ./.travis.sh