-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 1.73 KB
/
sterile-build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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