Skip to content

Commit

Permalink
Add an ARM Mac to the CI pool (#976)
Browse files Browse the repository at this point in the history
* Add an ARM Mac to the CI pool

* Increase the stack size on ARM Mac, too
  • Loading branch information
dfellis authored Nov 22, 2024
1 parent ecb31fa commit 2cf2bb2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: cargo bench

bench-macos:
runs-on: [self-hosted, macOS]
runs-on: [self-hosted, macOS, X64]
steps:
- uses: actions/checkout@v4
- name: Build Alan
Expand All @@ -49,3 +49,12 @@ jobs:
run: cargo build --verbose
- name: Rust-managed Benchmarks
run: cargo bench

bench-arm-macos:
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v4
- name: Build Alan
run: cargo build --verbose
- name: Rust-managed Benchmarks
run: cargo bench
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Run tests
run: npm test
test-js-gpgpu:
runs-on: [self-hosted, macOS]
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v4
- name: Install deps
Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: cargo run --release -- test --js alan/test.ln

test-macos:
runs-on: [self-hosted, macOS]
runs-on: [self-hosted, macOS, X64]
steps:
- uses: actions/checkout@v4
- name: Node deps
Expand Down Expand Up @@ -86,3 +86,27 @@ jobs:
run: cargo run --release -- test alan/test.ln
- name: Run js tests
run: cargo run --release -- test --js alan/test.ln

test-arm-macos:
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v4
- name: Node deps
run: yarn
- name: Start web server
run: yarn start-server
- name: Build
run: cargo build --verbose
- if: ${{ github.ref_name == 'main' }}
name: Run tests
run: RUST_MIN_STACK=8388608 cargo test --verbose -- --include-ignored
- if: ${{ github.ref_name != 'main' }}
name: Run tests
run: RUST_MIN_STACK=8388608 cargo test --verbose
- if: always()
name: Stop web server
run: yarn stop-server
- name: Run native tests
run: cargo run --release -- test alan/test.ln
- name: Run js tests
run: cargo run --release -- test --js alan/test.ln

0 comments on commit 2cf2bb2

Please sign in to comment.