back to lab #36
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: | |
matrix: | |
dpdk_sys: | |
- main | |
rust: | |
- pinned | |
profile: | |
- debug | |
- release | |
container: | |
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 | |
- /dev/shm/tmpfs:/tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: just _ci-compile-env-hack | |
- run: just cargo build --profile=${{ matrix.profile }} --target=x86_64-unknown-linux-gnu | |
- run: just cargo test --profile=${{ matrix.profile }} --target=x86_64-unknown-linux-gnu | |
- run: just cargo build --profile=${{ matrix.profile }} --target=x86_64-unknown-linux-musl | |
- run: just 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 |