Skip to content

Commit

Permalink
cleanup github actions a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-noland committed Oct 22, 2024
1 parent 6d37525 commit b1fe0fa
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/sterile-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -35,23 +27,32 @@ 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 }}
include-hidden-files: true
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
Expand All @@ -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

0 comments on commit b1fe0fa

Please sign in to comment.