aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-11-10 14:35:47 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-11-11 07:42:40 -0800
commit3ffe77ba2ca2e832af1a44ca7f3a65cbc1215713 (patch)
tree9a2f76477697c36bdce008ee4b75a5aa42e6b9ea /.github
parent220da39c7cf0f3b0429bbf80b71da0bd7a4d84a5 (diff)
downloadmeson-3ffe77ba2ca2e832af1a44ca7f3a65cbc1215713.zip
meson-3ffe77ba2ca2e832af1a44ca7f3a65cbc1215713.tar.gz
meson-3ffe77ba2ca2e832af1a44ca7f3a65cbc1215713.tar.bz2
actions: Add project tests actions for macos
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/macos.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 7971b4b..f793692 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -33,3 +33,28 @@ jobs:
export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
export PATH="$HOME/tools:/usr/local/opt/qt/bin:$PATH:$(brew --prefix llvm)/bin"
./run_unittests.py
+
+ project-tests-appleclang:
+ runs-on: macos-latest
+ strategy:
+ matrix:
+ unity: ["on", "off"]
+ steps:
+ - uses: actions/checkout@v2
+ # use python3 from homebrew because it is a valid framework, unlike the actions one:
+ # https://github.com/actions/setup-python/issues/58
+ - run: brew install pkg-config ninja llvm qt boost ldc hdf5 openmpi lapack scalapack sdl2 python3
+ - run: |
+ python3 -m pip install --upgrade setuptools
+ python3 -m pip install --upgrade pip
+ python3 -m pip install cython
+ - env:
+ CPPFLAGS: "-I/usr/local/include"
+ LDFLAGS: "-L/usr/local/lib"
+ MESON_ARGS: --unity=${{ matrix.unity }}
+ CI: 1
+ # These cannot evaluate anything, so we cannot set PATH or SDKROOT here
+ run: |
+ export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
+ export PATH="$HOME/tools:/usr/local/opt/qt/bin:$PATH:$(brew --prefix llvm)/bin"
+ ./run_project_tests.py --backend=ninja