2020-06-15 23:15:10 +08:00
|
|
|
# For development, trigger this on any push.
|
2020-11-13 00:16:46 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-05-15 00:12:10 +08:00
|
|
|
- main
|
2020-11-13 00:16:46 +08:00
|
|
|
pull_request:
|
2020-06-15 23:15:10 +08:00
|
|
|
|
2020-11-12 21:45:07 +08:00
|
|
|
name: Sim
|
|
|
|
|
2021-12-17 21:35:59 +08:00
|
|
|
concurrency:
|
|
|
|
group: sim-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-06-15 23:15:10 +08:00
|
|
|
jobs:
|
|
|
|
environment:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
features:
|
2021-02-20 03:18:51 +08:00
|
|
|
- "sig-ecdsa,sig-ecdsa-mbedtls,sig-ed25519,enc-kw,bootstrap"
|
2020-09-26 03:37:43 +08:00
|
|
|
- "sig-rsa,sig-rsa3072,overwrite-only,validate-primary-slot,swap-move"
|
2021-11-25 10:27:22 +08:00
|
|
|
- "enc-rsa,enc-rsa max-align-32"
|
|
|
|
- "enc-aes256-rsa,enc-aes256-rsa max-align-32"
|
|
|
|
- "enc-ec256,enc-ec256 max-align-32"
|
|
|
|
- "enc-aes256-ec256,enc-aes256-ec256 max-align-32"
|
|
|
|
- "enc-x25519,enc-x25519 max-align-32"
|
|
|
|
- "enc-aes256-x25519,enc-aes256-x25519 max-align-32"
|
|
|
|
- "sig-rsa overwrite-only,sig-ecdsa overwrite-only,sig-ecdsa-mbedtls overwrite-only,multiimage overwrite-only"
|
2021-02-20 03:18:51 +08:00
|
|
|
- "sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot,sig-ecdsa-mbedtls validate-primary-slot,sig-rsa multiimage validate-primary-slot"
|
2021-11-25 10:27:22 +08:00
|
|
|
- "enc-kw overwrite-only,enc-kw overwrite-only max-align-32"
|
|
|
|
- "enc-rsa overwrite-only,enc-rsa overwrite-only max-align-32"
|
|
|
|
- "enc-aes256-kw overwrite-only,enc-aes256-kw overwrite-only max-align-32"
|
2020-10-04 21:41:23 +08:00
|
|
|
- "sig-rsa enc-rsa validate-primary-slot,swap-move enc-rsa sig-rsa validate-primary-slot bootstrap"
|
2020-06-15 23:15:10 +08:00
|
|
|
- "sig-rsa enc-kw validate-primary-slot bootstrap,sig-ed25519 enc-x25519 validate-primary-slot"
|
|
|
|
- "sig-ecdsa enc-kw validate-primary-slot"
|
2021-02-20 03:18:51 +08:00
|
|
|
- "sig-ecdsa-mbedtls enc-kw validate-primary-slot"
|
2021-11-25 10:27:22 +08:00
|
|
|
- "sig-rsa validate-primary-slot overwrite-only,sig-rsa validate-primary-slot overwrite-only max-align-32"
|
2020-09-26 03:37:43 +08:00
|
|
|
- "sig-ecdsa enc-ec256 validate-primary-slot"
|
2021-05-07 07:00:08 +08:00
|
|
|
- "sig-ecdsa-mbedtls enc-ec256-mbedtls validate-primary-slot"
|
2021-05-14 23:46:50 +08:00
|
|
|
- "sig-ecdsa-mbedtls enc-aes256-ec256 validate-primary-slot"
|
2020-06-15 23:15:10 +08:00
|
|
|
- "sig-rsa validate-primary-slot overwrite-only downgrade-prevention"
|
2021-05-27 07:13:34 +08:00
|
|
|
- "sig-rsa validate-primary-slot ram-load"
|
2021-10-07 23:13:53 +08:00
|
|
|
- "sig-rsa enc-rsa validate-primary-slot ram-load"
|
2021-05-27 07:13:34 +08:00
|
|
|
- "sig-rsa validate-primary-slot direct-xip"
|
2021-06-24 06:17:21 +08:00
|
|
|
- "sig-rsa validate-primary-slot ram-load multiimage"
|
|
|
|
- "sig-rsa validate-primary-slot direct-xip multiimage"
|
2023-05-03 20:14:03 +08:00
|
|
|
- "sig-ecdsa hw-rollback-protection multiimage"
|
2023-06-12 16:41:52 +08:00
|
|
|
- "sig-ecdsa-psa,sig-ecdsa-psa sig-p384"
|
2023-04-20 22:56:18 +08:00
|
|
|
- "ram-load enc-aes256-kw multiimage"
|
|
|
|
- "ram-load enc-aes256-kw sig-ecdsa-mbedtls multiimage"
|
2020-06-15 23:15:10 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
MULTI_FEATURES: ${{ matrix.features }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2020-09-29 20:26:29 +08:00
|
|
|
fetch-depth: 0
|
2020-06-15 23:15:10 +08:00
|
|
|
submodules: recursive
|
|
|
|
- name: Print the environment
|
|
|
|
run: |
|
|
|
|
uname -a
|
|
|
|
lscpu
|
|
|
|
free
|
|
|
|
pwd
|
2020-09-29 20:26:29 +08:00
|
|
|
- name: Signed commit check
|
2020-11-13 00:41:57 +08:00
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
2020-09-29 20:26:29 +08:00
|
|
|
run: |
|
|
|
|
./ci/check-signed-off-by.sh
|
2020-06-15 23:15:10 +08:00
|
|
|
- name: Install stable Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
- name: Sim install
|
|
|
|
run: |
|
|
|
|
./ci/sim_install.sh
|
|
|
|
- name: Sim run
|
|
|
|
run: |
|
|
|
|
./ci/sim_run.sh
|