Skip to content

Commit

Permalink
test mac
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyyyyy committed Jan 6, 2025
1 parent b82f1ae commit ee90acb
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Linux Build Test

on:
push:
branches: [ main ]
branches: [ rust ]
pull_request:
branches: [ main ]
branches: [ rust ]

jobs:
build:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: macOS Build Test

on:
push:
branches: [ rust ]
pull_request:
branches: [ rust ]

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
cache: 'npm'

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install system dependencies
run: |
brew update
brew install cmake opencv llvm
- name: Set LIBCLANG_PATH
run: echo "LIBCLANG_PATH=$(brew --prefix llvm)/lib" >> $GITHUB_ENV

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features

- name: Install dependencies
run: npm install

- name: Test
run: npm run test
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Windows Build Test

on:
push:
branches: [ main ]
branches: [ rust ]
pull_request:
branches: [ main ]
branches: [ rust ]

jobs:
build:
Expand Down

0 comments on commit ee90acb

Please sign in to comment.