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:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2020-06-15 23:15:10 +08:00
|
|
|
|
2020-11-12 21:45:07 +08:00
|
|
|
name: Sim
|
|
|
|
|
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"
|
|
|
|
- "enc-rsa"
|
|
|
|
- "enc-ec256"
|
|
|
|
- "enc-x25519"
|
2021-02-20 03:18:51 +08:00
|
|
|
- "sig-rsa overwrite-only large-write,sig-ecdsa overwrite-only large-write,sig-ecdsa-mbedtls overwrite-only large-write,multiimage overwrite-only large-write"
|
|
|
|
- "sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot,sig-ecdsa-mbedtls validate-primary-slot,sig-rsa multiimage validate-primary-slot"
|
2020-06-15 23:15:10 +08:00
|
|
|
- "enc-kw overwrite-only large-write,enc-rsa overwrite-only large-write"
|
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"
|
2020-09-26 03:37:43 +08:00
|
|
|
- "sig-rsa validate-primary-slot overwrite-only large-write"
|
|
|
|
- "sig-ecdsa enc-ec256 validate-primary-slot"
|
2021-02-20 03:18:51 +08:00
|
|
|
# ecdsa-mbedtls and enc-ec256 are not currently supported
|
|
|
|
# together, as the ec256 code requires only one backend be
|
|
|
|
# active.
|
|
|
|
# - "sig-ecdsa-mbedtls enc-ec256 validate-primary-slot"
|
2020-06-15 23:15:10 +08:00
|
|
|
- "sig-rsa validate-primary-slot overwrite-only downgrade-prevention"
|
|
|
|
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
|