diff --git a/.github/workflows/sterile-build-and-test.yml b/.github/workflows/sterile-build-and-test.yml index e718b4c2..8373271a 100644 --- a/.github/workflows/sterile-build-and-test.yml +++ b/.github/workflows/sterile-build-and-test.yml @@ -13,30 +13,7 @@ permissions: packages: read id-token: write jobs: - fetch: - runs-on: ubuntu-latest - timeout-minutes: 180 - container: - image: ghcr.io/githedgehog/dpdk-sys/dev-env:main-rust-pinned - credentials: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - volumes: - - /var/run/docker.sock:/var/run/docker.sock - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: persist source code - uses: actions/upload-artifact@v4 - with: - name: source - path: ${{ github.workspace }} - include-hidden-files: true - retention-days: 1 - compression-level: '0' compile: - needs: - - fetch runs-on: - lab strategy: @@ -47,16 +24,16 @@ jobs: - stable - pinned container: - image: ghcr.io/githedgehog/dpdk-sys/compile-env:${{ matrix.dpdk_sys }}-rust-${{ matrix.rust }} + image: ghcr.io/githedgehog/dpdk-sys/dev-env:${{ matrix.dpdk_sys }}-rust-${{ matrix.rust }} credentials: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + volumes: + - /var/run/docker.sock:/var/run/docker.sock steps: - - name: build source - uses: actions/download-artifact@v4 - with: - name: source - run-id: "github-token" + - name: Checkout + uses: actions/checkout@v4 + - run: just --yes rust=${{matrix.rust}} refresh-compile-env - run: just cargo build - run: just cargo test - run: just cargo build --release