Files
pkh/.github/workflows/ci.yml
Valentin Haudiquet 6f0d2f0298
Some checks failed
CI / build (pull_request) Failing after 1m16s
ci: added unshare runtime dependency
2025-12-24 12:51:17 +01:00

34 lines
733 B
YAML

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check format
run: cargo fmt --check
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
- name: Build
run: cargo build
- name: Install runtime system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pristine-tar sbuild mmdebstrap unshare dpkg-dev
- name: Run tests
run: cargo test