struct Dav1dMCDSPContext
: Dispatch through indirect fn
ptrs inside of bitdepth-dependent fn
s
#626
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 x86-64 | |
on: [push, pull_request] | |
jobs: | |
test-on-ubuntu-latest: | |
strategy: | |
matrix: | |
target: [ | |
"x86_64-unknown-linux-gnu", | |
"i686-unknown-linux-gnu" | |
] | |
build: [ | |
# release build without optimized assembly routines | |
{name: "release", flags: "--release --no-default-features --features=bitdepth_8,bitdepth_16", timeout_multiplier: 1}, | |
# debug build to catch overflows with optimized assembly routines | |
{name: "debug", flags: "", timeout_multiplier: 2} | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- name: install prerequisites | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: meson nasm gcc-multilib | |
version: 1.0 # version of cache to load | |
- name: git checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: cache rust toolchain | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.rustup/toolchains | |
~/.rustup/update-hashes | |
~/.rustup/settings.toml | |
key: ${{ runner.os }}-${{ matrix.target }}-rust-toolchain-${{ hashFiles('rust-toolchain', 'rust-toolchain.toml') }} | |
- name: cache rust crates | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: cargo build for ${{ matrix.target }} ${{ matrix.build.name }} | |
run: | | |
cargo clean | |
rustup target add ${{ matrix.target }} | |
cargo build --target ${{ matrix.target }} ${{ matrix.build.flags }} | |
- name: meson test for ${{ matrix.target }} ${{ matrix.build.name }} | |
run: | | |
.github/workflows/test.sh -r ../target/${{ matrix.target }}/${{ matrix.build.name }}/dav1d -t ${{ matrix.build.timeout_multiplier }} | |
cp ${{ github.workspace }}/build/meson-logs/testlog.txt \ | |
${{ github.workspace }}/build/meson-logs/testlog-${{ matrix.target }}-${{ matrix.build.name }}.txt | |
- name: upload build artifacts | |
if: ${{ !cancelled() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: meson-test-logs | |
path: | | |
${{ github.workspace }}/build/meson-logs/testlog-*.txt |