forked from skyzh/tiny-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 962 Bytes
/
macos.yml
File metadata and controls
40 lines (31 loc) · 962 Bytes
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
# Build and test the reference solution automatically on M1 runners.
# This helps prevent breakage of the dev setup.
name: macOS
on:
push:
branches:
- main
pull_request:
jobs:
test-refsol:
name: Test reference solution
runs-on: macos-15 # ARM64
steps:
- uses: actions/checkout@v5
- uses: pdm-project/setup-pdm@v4
with:
python-version: 3.12
cache: true
- run: pdm install
- run: pdm run check-installation
# Without this, future build steps fail in CMake.
- name: Add nanobind to CMake
run: |
nanobind_dir=$(pdm run python -c 'import nanobind, os; print(os.path.join(nanobind.__path__[0], "cmake"))')
echo "nanobind_DIR=${nanobind_dir}" >> $GITHUB_ENV
- name: Try building extensions
run: |
pdm run build-ext
pdm run build-ext-test
- run: pdm run build-ext-ref
- run: pdm run test-refsol