-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (39 loc) · 1.11 KB
/
mac-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Tests(Mac)
on:
push:
branches:
- main
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}
cancel-in-progress: true
jobs:
tests:
if: github.repository == 'gen740/cppygen'
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup pip
run: |
pip install -U pip
- name: Install llvm
run: |
brew update
brew install llvm
- name: Install
run: |
pip install .
- name: Tests
run: |
pytest
env:
CPPYGEN_COMPILE_FLAGS: -nostdinc -isystem/usr/local/opt/llvm/bin/../include/c++/v1 -isystem/usr/local/opt/llvm/lib/clang/17/include -isystem/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include
CPPYGEN_LIBCLANG_PATH: /usr/local/opt/llvm/lib/libclang.dylib