Skip to content

When parsing apt sources, detect compression from content #9

When parsing apt sources, detect compression from content

When parsing apt sources, detect compression from content #9

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 9 * * 1'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os.name }}
strategy:
fail-fast: false
matrix:
os:
- name: ubuntu-22.04
upload: target/release/backseat-signed
- name: macos-latest
# https://github.com/magicant/yash-rs/pull/357
#- name: windows-latest
# features: -F vendored
steps:
- uses: actions/checkout@v4
- name: Set up cargo cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-release-
- name: Build
run: cargo build --release --locked --verbose ${{ matrix.os.features }}
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: bin
path: ${{ matrix.os.upload }}
if: matrix.os.upload
unit-test:
runs-on: ${{ matrix.os.name }}
strategy:
fail-fast: false
matrix:
os:
- name: ubuntu-22.04
- name: macos-latest
# https://github.com/magicant/yash-rs/pull/357
#- name: windows-latest
# features: -F vendored
steps:
- uses: actions/checkout@v4
- name: Set up cargo cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-debug-
- name: Run clippy
run: cargo clippy ${{ matrix.os.features }} -- -D warnings
- name: Run tests
run: cargo test ${{ matrix.os.features }} --verbose
fmt:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run cargo fmt
run: cargo fmt --all -- --check