github: Add workflow test for simulator

This adds a github workflow test that reproduces the same behavior as
the current travis workflow test (for the simulator).  Most of the work
is done by support scripts, and it is the list of tests that is
duplicated from the .travis.yaml file.

Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
David Brown 2020-06-15 09:15:10 -06:00 committed by Fabio Utzig
parent 8672c8e98a
commit 2d99cba4f2
1 changed files with 46 additions and 0 deletions

46
.github/workflows/sim.yaml vendored Normal file
View File

@ -0,0 +1,46 @@
# For development, trigger this on any push.
on: [push, pull_request]
# Eventually, we'll want to limit this to pull requests.
# on: ???
jobs:
environment:
strategy:
matrix:
features:
- "sig-ecdsa,sig-ed25519,enc-kw,bootstrap"
- ",sig-rsa,sig-rsa3072,overwrite-only,validate-primary-slot,swap-move"
- "enc-rsa,enc-ec256,enc-x25519"
- "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"
- "sig-rsa enc-rsa validate-primary-slot,swap-move enc-rsa sig-rsa validate-primary-slot"
- "sig-rsa enc-kw validate-primary-slot bootstrap,sig-ed25519 enc-x25519 validate-primary-slot"
- "sig-ecdsa enc-kw validate-primary-slot"
- "sig-rsa validate-primary-slot overwrite-only large-write,sig-ecdsa enc-ec256 validate-primary-slot"
- "sig-rsa validate-primary-slot overwrite-only downgrade-prevention"
name: Environment report
runs-on: ubuntu-latest
env:
MULTI_FEATURES: ${{ matrix.features }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Print the environment
run: |
uname -a
lscpu
free
pwd
- 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