parent
b8e854807c
commit
7485407356
2 changed files with 36 additions and 0 deletions
@ -0,0 +1,35 @@ |
||||
name: macos |
||||
|
||||
on: |
||||
push: |
||||
paths: |
||||
- "mesonbuild/**" |
||||
- "test cases/**" |
||||
- ".github/workflows/macos.yml" |
||||
pull_request: |
||||
paths: |
||||
- "mesonbuild/**" |
||||
- "test cases/**" |
||||
- ".github/workflows/macos.yml" |
||||
|
||||
jobs: |
||||
unittests-appleclang: |
||||
runs-on: macos-latest |
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- uses: actions/setup-python@v2 |
||||
with: |
||||
python-version: '3.x' |
||||
- run: | |
||||
python -m pip install --upgrade pip |
||||
python -m pip install pytest pytest-xdist jsonschema |
||||
- run: brew install pkg-config ninja llvm qt |
||||
- env: |
||||
CPPFLAGS: "-I/usr/local/include" |
||||
LDFLAGS: "-L/usr/local/lib" |
||||
MESON_UNIT_TEST_BACKEND: ninja |
||||
# 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_unittests.py |
Loading…
Reference in new issue