Skip to content

Commit

Permalink
CI: Test debug build on aarch64-darwin
Browse files Browse the repository at this point in the history
Sometimes testing without optimizations can surface issues so we
add an unoptimized test run for aarch64-darwin since since tests
run fast on that platform.
  • Loading branch information
thedataking committed Apr 4, 2024
1 parent fb55232 commit afbf94d
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/build-and-test-aarch64-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,24 @@ on:
pull_request:
jobs:
test-on-macos-aarch64:
strategy:
matrix:
build: [
{name: "release", cargo_flags: "--release", timeout_multiplier: 1},
{name: "debug", cargo_flags: "", timeout_multiplier: 3},
]
runs-on: macos-14
name: test on macos-14-aarch64
steps:
- name: install prerequisites
run: |
brew install meson
- name: git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: cache rust dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -26,30 +32,29 @@ jobs:
~/.cargo/git/db/
target/
key: arm-darwin-cargo-and-target-${{ hashFiles('**/Cargo.lock') }}
- name: cargo build for aarch64-apple-darwin
run: cargo build --release
- name: cargo ${{ matrix.build.name }} build for aarch64-apple-darwin
run: cargo build ${{ matrix.build.cargo_flags }}
# not quite sure why we need this on the runner, not needed locally
- run: |
meson build --buildtype release
meson build --buildtype ${{ matrix.build.name }}
ninja -C build tools/dav1d
- name: test without frame delay
run: .github/workflows/test.sh \
-r ./target/release/dav1d \
-s ./target/release/seek_stress
# tests run quickly so also cover the frame delay cases
- name: test with frame delay of 1
- name: test release build with frame delay of 1
if: ${{ matrix.build.name == 'release' }}
run: .github/workflows/test.sh \
-r ./target/release/dav1d \
-s ./target/release/seek_stress
-f 1
- name: test with frame delay of 2
- name: test release build with frame delay of 2
if: ${{ matrix.build.name == 'release' }}
run: .github/workflows/test.sh \
-r ./target/release/dav1d \
-s ./target/release/seek_stress
-f 2
- run: .github/workflows/test.sh \
-r ./target/release/dav1d \
-s ./target/release/seek_stress
- name: upload build artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit afbf94d

Please sign in to comment.