hack 12 #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a sterile build and test workflow that uses the `dev-env` container image | |
# to build and test the project in a sterile environment. | |
# Artifacts produced by this workflow are intended to be used for production. | |
name: Sterile build + test | |
on: | |
- push | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }} | |
cancel-in-progress: true | |
permissions: | |
contents: "write" | |
packages: "read" | |
id-token: "write" | |
jobs: | |
compile: | |
runs-on: | |
- "lab" | |
strategy: | |
fail-fast: false | |
matrix: | |
dpdk_sys: | |
- "main" | |
just: | |
- "1.36.0" | |
rust: | |
- "pinned" | |
profile: | |
- "debug" | |
- "release" | |
steps: | |
- name: login to ghcr.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: install just | |
uses: extractions/setup-just@v2 | |
with: | |
just-version: ${{matrix.just}} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: just sterile cargo build --profile=${{ matrix.profile }} --target=x86_64-unknown-linux-gnu | |
- run: just sterile cargo test --profile=${{ matrix.profile }} --target=x86_64-unknown-linux-gnu | |
- run: just sterile cargo build --profile=${{ matrix.profile }} --target=x86_64-unknown-linux-musl | |
- run: just sterile cargo test --profile=${{ matrix.profile }} --target=x86_64-unknown-linux-musl | |
- 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 |