summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/macos.yml36
-rw-r--r--.travis.yml6
2 files changed, 39 insertions, 3 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
diff --git a/.travis.yml b/.travis.yml
index 2b0802ee..f4e74bad 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,6 @@
language: cpp
os:
- linux
- - osx
dist: trusty
git:
@@ -14,14 +13,15 @@ env:
global:
- CFLAGS='-g3 -pipe'
matrix:
+ # NOTE: There is a copy of this matrix at .github/workflows/macos.yml
+ # for GitHub Actions. 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 CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address
matrix:
include:
- - os: osx
- env: MODE=cppcheck
- os: linux
env: MODE=clang-format
- os: linux