-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.57 KB
/
build.yml
File metadata and controls
56 lines (52 loc) · 1.57 KB
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
56
name: Build
on:
pull_request:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/actions/install-tpm2-tss/**'
- '.github/workflows/build.yml'
push:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/actions/install-tpm2-tss/**'
- '.github/workflows/build.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
toolchain:
- "1.88.0"
- stable
os-arch:
- ubuntu-24.04-x86_64
- ubuntu-24.04-aarch64
include:
- os-arch: ubuntu-24.04-x86_64
runner: ubuntu-24.04
target: x86_64-unknown-linux-gnu
- os-arch: ubuntu-24.04-aarch64
runner: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- uses: ./.github/actions/install-tpm2-tss
with:
version: "30e6057722058cb85c292dcb7b77760ad6410d4e" # version 4.1.3
# - run: sudo apt-get update && sudo apt-get install -y libtss2-dev pkg-config
- run: cargo build --workspace --all-targets --all-features --target ${{ matrix.target }}