Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
- '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:

Expand Down Expand Up @@ -42,8 +44,8 @@ jobs:
runner: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- 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 }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Lint (Rust)
name: Lint

on:
pull_request:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/actions/install-tpm2-tss/**'
- '.github/workflows/lint.yml'
push:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/actions/install-tpm2-tss/**'
- '.github/workflows/lint.yml'
workflow_dispatch:

Expand All @@ -26,8 +28,8 @@ jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
toolchain: stable
components: rustfmt
Expand All @@ -36,8 +38,8 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
toolchain: stable
components: clippy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/spdx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
spdx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: enarx/spdx@d4020ee98e3101dd487c5184f27c6a6fb4f88709 # master
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: enarx/spdx@d4020ee98e3101dd487c5184f27c6a6fb4f88709
with:
licenses: Apache-2.0
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Integration Tests
name: Test

on:
push:
Expand All @@ -7,13 +7,15 @@ on:
- 'tests/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/actions/install-tpm2-tss/**'
- '.github/workflows/test.yml'
pull_request:
paths:
- 'src/**'
- 'tests/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/actions/install-tpm2-tss/**'
- '.github/workflows/test.yml'
workflow_dispatch:

Expand All @@ -28,7 +30,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
integration-test:
test:
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
Expand All @@ -47,16 +49,16 @@ jobs:
runner: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- 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
# - run: sudo apt-get update && sudo apt-get install -y libtss2-dev pkg-config
- name: Install swtpm
run: sudo apt-get install -y swtpm
- name: Run integration tests
- name: Run cargo test --all-targets
env:
TSS2_ESYS_STATIC: 1
TSS2_SYS_STATIC: 1
Expand Down