-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (45 loc) · 1.84 KB
/
build-and-test-arm7.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
name: build and test on arm7 with QEMU
on: [push, pull_request]
jobs:
test-on-qemu-linux-arm7:
runs-on: ubuntu-latest
name: test on debian-bullseye-arm7
steps:
- name: install prerequisites
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: g++-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-binfmt meson nasm
version: 1.0 # version of cache to load
- name: register QEMU
run: echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
- name: git checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: cache rust dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: arm7-unknown-linux-gnu-cargo-and-target-${{ hashFiles('**/Cargo.lock') }}
- name: cargo build for armv7-unknown-linux-gnueabihf
run: |
rustup target add armv7-unknown-linux-gnueabihf
RUSTFLAGS="-C target-feature=+crt-static -C linker=arm-linux-gnueabihf-gcc" \
cargo build --release --target armv7-unknown-linux-gnueabihf
- name: run tests
run: |
.github/workflows/test.sh -t 2 \
-r target/armv7-unknown-linux-gnueabihf/release/dav1d \
-s target/armv7-unknown-linux-gnueabihf/release/seek_stress
- name: upload build artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v3
with:
name: meson-test-logs
path: |
${{ github.workspace }}/build/meson-logs/testlog.txt