diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1b72612..72063bb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,17 +10,20 @@ env: CARGO_TERM_COLOR: always jobs: - build: - + build-fedora: runs-on: ubuntu-24.04 + container: + image: quay.io/fedora/fedora:41 + options: "--privileged --pid=host -v /var/tmp:/var/tmp -v /:/run/host" steps: + - run: dnf -y install cargo clippy composefs-devel e2fsprogs - name: Enable fs-verity on / - run: sudo tune2fs -O verity $(findmnt -vno SOURCE /) + run: tune2fs -O verity $(findmnt -vno SOURCE /run/host) - uses: actions/checkout@v4 - name: Build run: cargo build --verbose - name: Clippy run: cargo clippy - name: Run tests - run: cargo test --verbose + run: env CFS_TEST_TMPDIR=/run/host/var/tmp cargo test --verbose