Backport memory optimization for palette mode from dav1d 1.3.0 #4099
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 binfmt-support qemu-user-static meson nasm | |
version: 1.0 # version of cache to load | |
- run: | | |
sudo update-binfmts --import | |
sudo update-binfmts --enable qemu-arm | |
update-binfmts --display | |
- 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 |