-
Notifications
You must be signed in to change notification settings - Fork 22
81 lines (80 loc) · 3.12 KB
/
build-and-test-aarch64-darwin.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: build and test on aarch64
on:
push:
branches:
- 'main'
pull_request:
jobs:
test-on-macos-aarch64:
strategy:
matrix:
build: [
{name: "release", cargo_flags: "--release", timeout_multiplier: 1},
{name: "release-no-asm", cargo_flags: "--release --no-default-features --features=bitdepth_8,bitdepth_16", 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@v4
with:
fetch-depth: 1
- name: cache rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: arm-darwin-cargo-and-target-${{ hashFiles('**/Cargo.lock') }}
- name: cargo ${{ matrix.build.name }} build for aarch64-apple-darwin
run: cargo +stable build ${{ matrix.build.cargo_flags }}
- name: test ${{ matrix.build.name }} build without frame delay
run: |
.github/workflows/test.sh \
-r ./target/${{ startsWith(matrix.build.name, 'release') && 'release' || matrix.build.name }}/dav1d \
-s ./target/${{ startsWith(matrix.build.name, 'release') && 'release' || matrix.build.name }}/seek_stress \
-t ${{ matrix.build.timeout_multiplier }}
# release tests run quickly so we test negative strides and frame delays
- name: test release build with negative stride
if: ${{ startsWith(matrix.build.name, 'release') }}
run: |
.github/workflows/test.sh \
-r ./target/release/dav1d \
-s ./target/release/seek_stress \
-t ${{ matrix.build.timeout_multiplier }} \
-n
- name: test release build with frame delay of 1
if: ${{ startsWith(matrix.build.name, 'release') }}
run: |
.github/workflows/test.sh \
-r ./target/release/dav1d \
-s ./target/release/seek_stress \
-t ${{ matrix.build.timeout_multiplier }} \
-f 1
- name: test release build with frame delay of 2
if: ${{ startsWith(matrix.build.name, 'release') }}
run: |
.github/workflows/test.sh \
-r ./target/release/dav1d \
-s ./target/release/seek_stress \
-t ${{ matrix.build.timeout_multiplier }} \
-f 2
- name: copy log files
if: ${{ !cancelled() }}
run: |
cp ${{ github.workspace }}/build/meson-logs/testlog.txt \
${{ github.workspace }}/build/meson-logs/testlog-aarch64-apple-darwin-${{ matrix.build.name }}.txt
- name: upload build artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: meson-test-logs-aarch64-apple-darwin-${{ matrix.build.name }}
path: |
${{ github.workspace }}/build/meson-logs/testlog-*.txt