2020-06-15 23:15:10 +08:00
|
|
|
# For development, trigger this on any push.
|
2020-09-26 02:53:09 +08:00
|
|
|
on: [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:
|
|
|
|
- "sig-ecdsa,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"
|
2020-06-15 23:15:10 +08:00
|
|
|
- "sig-rsa overwrite-only large-write,sig-ecdsa overwrite-only large-write,multiimage overwrite-only large-write"
|
|
|
|
- "sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot,sig-rsa multiimage validate-primary-slot"
|
|
|
|
- "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"
|
2020-09-26 03:37:43 +08:00
|
|
|
- "sig-rsa validate-primary-slot overwrite-only large-write"
|
|
|
|
- "sig-ecdsa 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
|
|
|
|
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
|