Skip to content

fn mem::zeroed: Replace most uses with Default::default() (#994) #678

fn mem::zeroed: Replace most uses with Default::default() (#994)

fn mem::zeroed: Replace most uses with Default::default() (#994) #678

name: build and test on armv7 and aarch64 with QEMU
on:
push:
branches:
- 'main'
pull_request:
jobs:
test-on-ubuntu-latest-with-qemu:
strategy:
matrix:
# only test specific parameter pairs, not the cross product
include:
- target: "armv7-unknown-linux-gnueabihf"
linker: "arm-linux-gnueabihf-gcc"
interpreter: "qemu-arm"
packages: "g++-arm-linux-gnueabihf libc6-dev-armhf-cross"
- target: "aarch64-unknown-linux-gnu"
linker: "aarch64-linux-gnu-gcc"
interpreter: "qemu-aarch64"
packages: "g++-aarch64-linux-gnu libc6-dev-arm64-cross"
runs-on: ubuntu-latest
name: test on ${{ matrix.target }}
steps:
- name: install prerequisites
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: ${{ matrix.packages }} binfmt-support qemu-user-static meson nasm
version: 1.0 # version of cache to load
# since binfmt-support was likely cached from previous run, we need to
# re-run the post installation step from that package to register
# qemu-arm, qemu-aarch64, etc. as an interpreter for the cross compiled
# binaries.
- name: register ${{ matrix.interpreter }} as interpreter
run: |
sudo update-binfmts --import
sudo update-binfmts --enable ${{ matrix.interpreter }}
update-binfmts --display
- 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: ${{ matrix.target }}-cargo-and-target-${{ hashFiles('**/Cargo.lock') }}
- name: cargo build for ${{ matrix.target }}
run: |
rustup target add ${{ matrix.target }}
RUSTFLAGS="-C target-feature=+crt-static -C linker=${{ matrix.linker }}" \
cargo build --release --target ${{ matrix.target }}
- name: run tests
run: |
.github/workflows/test.sh -t 2 \
-r target/${{ matrix.target }}/release/dav1d \
-s target/${{ matrix.target }}/release/seek_stress
- name: upload build artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: meson-test-logs-${{ matrix.target }}
path: |
${{ github.workspace }}/build/meson-logs/testlog.txt