Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable debian 11 and 12 workflows #125

Closed
wants to merge 10 commits into from
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
Loading