Skip to content

Fix alignment for dav1d_sgr_x_by_x #1127

Fix alignment for dav1d_sgr_x_by_x

Fix alignment for dav1d_sgr_x_by_x #1127

name: build and test on x86-64
on: [push, pull_request]
jobs:
test-on-ubuntu-latest:
runs-on: ubuntu-latest
steps:
- name: install prerequisites
run: |
# make sure we don't silently continue
set -euo pipefail
sudo apt-get update --quiet=2
sudo apt-get install --yes meson nasm gcc-multilib
env:
DEBIAN_FRONTEND: noninteractive
- 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 }}-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
run: cargo build --release
- name: meson test
run: |
.github/workflows/test.sh
cp ${{ github.workspace }}/build/meson-logs/testlog.txt \
${{ github.workspace }}/build/meson-logs/testlog-$(uname -m).txt
- name: cargo build for i686 (assembly temporarily disabled)
run: |
cargo clean
rustup target add i686-unknown-linux-gnu --toolchain nightly-2022-08-08
cargo build --release --target i686-unknown-linux-gnu \
--no-default-features --features bitdepth_8,bitdepth_16
ln target/i686-unknown-linux-gnu/release/dav1d target/release/dav1d
- name: meson test i686
run: |
.github/workflows/test.sh
cp ${{ github.workspace }}/build/meson-logs/testlog.txt \
${{ github.workspace }}/build/meson-logs/testlog-i686.txt
- name: upload build artifacts
uses: actions/upload-artifact@v3
with:
name: meson-test-logs
path: |
${{ github.workspace }}/build/meson-logs/testlog-*.txt