-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (42 loc) · 1.37 KB
/
mac.yml
File metadata and controls
53 lines (42 loc) · 1.37 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
name: macOS Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: macOS arm64
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Miniforge (conda-forge)
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
activate-environment: build
channels: conda-forge
- name: Install OpenCV 4.11.0 and clang via conda
shell: bash -el {0}
run: |
conda install -y opencv=4.11.0 libclang pkg-config
- name: Set build environment variables
shell: bash -el {0}
run: |
echo "PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig" >> "$GITHUB_ENV"
echo "LIBCLANG_PATH=$CONDA_PREFIX/lib" >> "$GITHUB_ENV"
echo "DYLD_FALLBACK_LIBRARY_PATH=$CONDA_PREFIX/lib" >> "$GITHUB_ENV"
echo "CONDA_PREFIX_SAVED=$CONDA_PREFIX" >> "$GITHUB_ENV"
- name: Install npm dependencies
run: npm install --ignore-scripts
- name: Build (debug)
run: npm run build:debug
- name: Run tests
run: DYLD_FALLBACK_LIBRARY_PATH="$CONDA_PREFIX_SAVED/lib" npm test