Skip to content

Commit

Permalink
Merge pull request #123 from morisja/issue-122
Browse files Browse the repository at this point in the history
Enable debian 11 and 12 workflows
  • Loading branch information
leifwalsh authored Oct 3, 2024
2 parents 7605e33 + 0ec334e commit cf94e3c
Show file tree
Hide file tree
Showing 3 changed files with 355 additions and 298 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,13 @@ jobs:
- name: Run tests
run: cargo test --verbose

coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop
options: --security-opt seccomp=unconfined

steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }}
- name: Generate code coverage
run: cargo tarpaulin --all-features --workspace --timeout 120 --out xml
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
build-debian:
strategy:
matrix:
debian-version: [11, 12]

build-debian-10:
runs-on: ubuntu-latest
container: debian:10
container: debian:${{ matrix.debian-version }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -76,7 +63,7 @@ jobs:

build-debian-package:
runs-on: ubuntu-latest
container: debian:10
container: debian:11

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -117,9 +104,14 @@ jobs:
env:
HAVE_SYSTEMD: "1"

run-ci-debian-10:

run-ci-debian:
strategy:
matrix:
debian-version: [11, 12]

runs-on: ubuntu-latest
container: debian:10
container: debian:${{ matrix.debian-version }}
needs: [build-debian-package]

steps:
Expand All @@ -138,7 +130,7 @@ jobs:

create-release:
runs-on: ubuntu-latest
needs: [run-ci-ubuntu-latest, run-ci-debian-10]
needs: [run-ci-ubuntu-latest, run-ci-debian]
if: github.event.release

steps:
Expand Down
Loading

0 comments on commit cf94e3c

Please sign in to comment.