Skip to content

Commit

Permalink
ci: Switch to using Fedora in a container
Browse files Browse the repository at this point in the history
Prep for linking to the composefs crate and C shared library
to ensure we share code and maintain an incentive to contribute
to those.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Nov 5, 2024
1 parent 7574d09 commit ba238e5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ba238e5

Please sign in to comment.