-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding GitHub Action CI testing for TPM features.
- Loading branch information
Showing
32 changed files
with
731 additions
and
65 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Wolfboot Reusable Build Workflow - Simulator with TPM | ||
|
||
on: | ||
|
||
workflow_call: | ||
inputs: | ||
arch: | ||
required: true | ||
type: string | ||
config-file: | ||
required: true | ||
type: string | ||
make-args: | ||
required: false | ||
type: string | ||
rot-args: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
# setup ibmswtpm2 | ||
- uses: actions/checkout@master | ||
with: | ||
repository: kgoldman/ibmswtpm2 | ||
path: ibmswtpm2 | ||
- name: ibmswtpm2 make | ||
working-directory: ./ibmswtpm2/src | ||
run: | | ||
make | ||
./ibmswtpm2/src/tpm_server & | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: make distclean | ||
run: | | ||
make distclean | ||
- name: Select config | ||
run: | | ||
cp ${{inputs.config-file}} .config | ||
- name: Build tools | ||
run: | | ||
make keytools && make tpmtools | ||
- name: Write TPM ROT to TPM | ||
run: | | ||
./tools/tpm/rot -write ${{rot-args}} | ||
- name: Build wolfboot | ||
run: | | ||
make ${{inputs.make-args}} | ||
- name: Run wolfBoot | ||
run: | | ||
./wolfboot.elf get_version |
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 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 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 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 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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Test TPM Configs | ||
|
||
on: | ||
push: | ||
branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
|
||
sim_tpm_ecc256: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm.config | ||
make-args: SIGN=ECC256 HASH=SHA256 | ||
|
||
sim_tpm_ecc384: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm.config | ||
make-args: SIGN=ECC384 HASH=SHA384 | ||
|
||
sim_tpm_rsa2048: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm.config | ||
make-args: SIGN=RSA2048 HASH=SHA256 | ||
|
||
|
||
sim_tpm_measure_ecc256: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm-measured.config | ||
make-args: SIGN=ECC256 HASH=SHA256 | ||
|
||
sim_tpm_measure_ecc384: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm-measured.config | ||
make-args: SIGN=ECC384 HASH=SHA384 | ||
|
||
sim_tpm_measure_rsa2048: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm-measured.config | ||
make-args: SIGN=RSA2048 HASH=SHA256 | ||
|
||
|
||
sim_tpm_keystore_ecc256: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm-keystore.config | ||
make-args: SIGN=ECC256 HASH=SHA256 | ||
|
||
sim_tpm_keystore_ecc384: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm-keystore.config | ||
make-args: SIGN=ECC384 HASH=SHA384 | ||
rot-args: -sha384 | ||
|
||
sim_tpm_keystore_rsa2048: | ||
uses: ./.github/workflows/test-build-sim-tpm.yml | ||
with: | ||
arch: host | ||
config-file: ./config/examples/sim-tpm-keystore.config | ||
make-args: SIGN=RSA2048 HASH=SHA256 |
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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ARCH=sim | ||
TARGET=sim | ||
SIGN?=ED25519 | ||
SIGN?=ECC256 | ||
HASH?=SHA256 | ||
WOLFBOOT_SMALL_STACK=1 | ||
SPI_FLASH=0 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
ARCH=sim | ||
TARGET=sim | ||
SIGN?=ECC384 | ||
HASH?=SHA384 | ||
SIGN?=ECC256 | ||
HASH?=SHA256 | ||
SPI_FLASH=0 | ||
DEBUG=1 | ||
WOLFTPM=1 | ||
|
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
Oops, something went wrong.