Skip to content

Fix linux-bin tag build #342

Fix linux-bin tag build

Fix linux-bin tag build #342

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
pr-linux-bin:
name: Build Linux musl binary
runs-on: ubuntu-latest
steps:
- run: rustup update stable
- run: rustup target add x86_64-unknown-linux-musl
- uses: actions/checkout@v4
- run: cargo build --release --locked --target=x86_64-unknown-linux-musl
- run: tar c ab-av1 | zstd -T0 -19 > ab-av1-v0.7.11-x86_64-unknown-linux-musl.tar.zst
working-directory: ./target/x86_64-unknown-linux-musl/release/
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/x86_64-unknown-linux-musl/release/ab-av1-v0.7.11-x86_64-unknown-linux-musl.tar.zst
tag: v0.7.11
overwrite: true
test:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
steps:
- run: rustup update stable
- uses: actions/checkout@v4
- run: cargo test --locked
# check print-completions don't fail
- run: cargo run --locked -- print-completions bash
- run: cargo run --locked -- print-completions fish
- run: cargo run --locked -- print-completions zsh
test-windows:
runs-on: windows-latest
env:
RUST_BACKTRACE: 1
steps:
- run: rustup update stable
- uses: actions/checkout@v4
- run: cargo check
rustfmt:
runs-on: ubuntu-latest
steps:
- run: rustup update stable
- uses: actions/checkout@v4
- run: cargo fmt -- --check