diff --git a/.github/workflows/sterile-build-and-test.yml b/.github/workflows/sterile-build-and-test.yml index 21e2f4a1..e718b4c2 100644 --- a/.github/workflows/sterile-build-and-test.yml +++ b/.github/workflows/sterile-build-and-test.yml @@ -14,18 +14,10 @@ permissions: id-token: write jobs: fetch: - name: build project runs-on: ubuntu-latest timeout-minutes: 180 - strategy: - matrix: - dpdk_sys: - - main - rust: - - stable - - pinned container: - image: ghcr.io/githedgehog/dpdk-sys/dev-env:${{ matrix.dpdk_sys }}-rust-${{ matrix.rust }} + image: ghcr.io/githedgehog/dpdk-sys/dev-env:main-rust-pinned credentials: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} @@ -35,7 +27,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: persist source code - - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v4 with: name: source path: ${{ github.workspace }} @@ -43,15 +35,24 @@ jobs: retention-days: 1 compression-level: '0' compile: + needs: + - fetch runs-on: - lab + strategy: + matrix: + dpdk_sys: + - main + rust: + - stable + - pinned container: image: ghcr.io/githedgehog/dpdk-sys/compile-env:${{ matrix.dpdk_sys }}-rust-${{ matrix.rust }} credentials: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} steps: - - name: fetch source + - name: build source uses: actions/download-artifact@v4 with: name: source @@ -60,3 +61,10 @@ jobs: - run: just cargo test - run: just cargo build --release - run: just cargo test --release + - uses: actions/upload-artifact@v4 + with: + name: dpdk-sys/${{ matrix.dpdk_sys }}/rust/${{ matrix.rust }}/target + path: target + retention-days: 1 + compression-level: 6 + overwrite: false