-
Notifications
You must be signed in to change notification settings - Fork 36
61 lines (56 loc) · 1.65 KB
/
macos.yml
File metadata and controls
61 lines (56 loc) · 1.65 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
name: macOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PYTHON_VERSION: '3.12'
jobs:
build-macos:
strategy:
matrix:
include:
# macOS 26.3 + Xcode 26.3
- name: "macOS 26.3 + Xcode 26.3"
os: macos-26
compiler: xcode
version: "26.3"
# macOS 15.7.4 + Xcode 16.4
- name: "macOS 15.7.4 + Xcode 16.4"
os: macos-15
compiler: xcode
version: "16.4"
runs-on: ${{ matrix.os }}
name: 🍎 Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Configure Compiler
run: |
if [ "${{ matrix.compiler }}" = "gcc" ]; then
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
else
ls -ls /Applications/
sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
fi
- name: Configure Build
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ..
- name: Build
run: cd build && make
- name: Run Unit Test
run: /Users/runner/work/CubbyFlow/CubbyFlow/build/bin/UnitTests
- name: Run Python Test
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install .
python -m pytest Tests/PythonTests/