diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e947f62..9699319 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,6 +60,40 @@ jobs: - name: Build run: cargo build --verbose + build-debian-11: + runs-on: ubuntu-latest + container: debian:11 + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + apt-get update + apt-get -y install build-essential dpkg-dev ca-certificates sudo curl + apt-get -y build-dep . + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }} + - name: Build + run: cargo build --verbose + + build-debian-12: + runs-on: ubuntu-latest + container: debian:12 + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + apt-get update + apt-get -y install build-essential dpkg-dev ca-certificates sudo curl + apt-get -y build-dep . + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }} + - name: Build + run: cargo build --verbose + clippy: runs-on: ubuntu-latest @@ -74,7 +108,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - build-debian-package: + build-debian-package-10: runs-on: ubuntu-latest container: debian:10 @@ -103,9 +137,67 @@ jobs: ./* !./clone/** + build-debian-package-11: + runs-on: ubuntu-latest + container: debian:11 + + steps: + - uses: actions/checkout@v4 + with: + path: clone + - name: Install dependencies + run: | + apt-get update + apt-get install -y build-essential dpkg-dev ca-certificates sudo curl + cd clone + apt-get build-dep -y . + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }} + - name: Build package + run: | + debian/rules vendor + dpkg-buildpackage --no-sign + working-directory: clone + - uses: actions/upload-artifact@v3 + with: + name: deb-package + path: | + ./* + !./clone/** + + build-debian-package-12: + runs-on: ubuntu-latest + container: debian:12 + + steps: + - uses: actions/checkout@v4 + with: + path: clone + - name: Install dependencies + run: | + apt-get update + apt-get install -y build-essential dpkg-dev ca-certificates sudo curl + cd clone + apt-get build-dep -y . + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }} + - name: Build package + run: | + debian/rules vendor + dpkg-buildpackage --no-sign + working-directory: clone + - uses: actions/upload-artifact@v3 + with: + name: deb-package + path: | + ./* + !./clone/** + run-ci-ubuntu-latest: runs-on: ubuntu-latest - needs: [build-debian-package] + needs: [build-debian-package-10, build-debian-package-11, build-debian-package-12] steps: - uses: actions/checkout@v4 @@ -120,7 +212,45 @@ jobs: run-ci-debian-10: runs-on: ubuntu-latest container: debian:10 - needs: [build-debian-package] + needs: [build-debian-package-10] + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + apt-get update + apt-get -y install build-essential + - uses: actions/download-artifact@v3 + with: + name: deb-package + - name: CI + run: ci/test.sh + env: + HAVE_SYSTEMD: "0" + + run-ci-debian-11: + runs-on: ubuntu-latest + container: debian:11 + needs: [build-debian-package-11] + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + apt-get update + apt-get -y install build-essential + - uses: actions/download-artifact@v3 + with: + name: deb-package + - name: CI + run: ci/test.sh + env: + HAVE_SYSTEMD: "0" + + run-ci-debian-12: + runs-on: ubuntu-latest + container: debian:12 + needs: [build-debian-package-12] steps: - uses: actions/checkout@v4 @@ -138,7 +268,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-10, run-ci-debian-11, run-ci-debian-12] if: github.event.release steps: