Skip to content

chore(deps): bump brotli-decompressor from 5.0.0 to 5.0.3 #78

chore(deps): bump brotli-decompressor from 5.0.0 to 5.0.3

chore(deps): bump brotli-decompressor from 5.0.0 to 5.0.3 #78

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
# Default: read-only. Each job opts in to extra scopes when needed.
permissions:
contents: read
jobs:
build:
name: Build, test, clippy
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- name: Install Rust (stable + clippy)
uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: stable
targets: i686-unknown-linux-gnu
components: clippy
- name: Install cross-compilation tools
run: |
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Build
run: cargo build --target i686-unknown-linux-gnu --verbose
- name: Test
run: cargo test --target i686-unknown-linux-gnu --verbose
- name: Clippy
run: cargo clippy --target i686-unknown-linux-gnu --all-targets -- -D warnings
fmt:
name: Rustfmt
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- name: Install Rust (stable + rustfmt)
uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --all -- --check
audit:
name: Security audit
runs-on: ubuntu-latest
# rustsec/audit-check opens issues for new advisories and posts
# review comments on PRs that introduce vulnerable dependencies.
permissions:
contents: read
issues: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v7
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
coverage:
name: Coverage (llvm-cov)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- name: Install Rust (stable + llvm-tools)
uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: stable
targets: i686-unknown-linux-gnu
components: llvm-tools-preview
- name: Install cross-compilation tools
run: |
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@94c31af3204a9f15ab40b35ad084410b905bbc73 # v2.87.17
with:
tool: cargo-llvm-cov
- name: Generate LCOV report
run: cargo llvm-cov --target i686-unknown-linux-gnu --lcov --output-path lcov.info
- name: Upload coverage artifact
uses: actions/upload-artifact@v7
with:
name: coverage-lcov
path: lcov.info
if-no-files-found: error