David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 1 | # For development, trigger this on any push. |
Fabio Utzig | 6dd2907 | 2020-11-12 13:16:46 -0300 | [diff] [blame] | 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - master |
| 6 | pull_request: |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 7 | |
Fabio Utzig | 0be390e | 2020-11-12 10:45:07 -0300 | [diff] [blame] | 8 | name: Sim |
| 9 | |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 10 | jobs: |
| 11 | environment: |
| 12 | strategy: |
| 13 | matrix: |
| 14 | features: |
| 15 | - "sig-ecdsa,sig-ed25519,enc-kw,bootstrap" |
Fabio Utzig | 10c97ba | 2020-09-25 16:37:43 -0300 | [diff] [blame] | 16 | - "sig-rsa,sig-rsa3072,overwrite-only,validate-primary-slot,swap-move" |
| 17 | - "enc-rsa" |
| 18 | - "enc-ec256" |
| 19 | - "enc-x25519" |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 20 | - "sig-rsa overwrite-only large-write,sig-ecdsa overwrite-only large-write,multiimage overwrite-only large-write" |
| 21 | - "sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot,sig-rsa multiimage validate-primary-slot" |
| 22 | - "enc-kw overwrite-only large-write,enc-rsa overwrite-only large-write" |
Fabio Utzig | 0d02976 | 2020-10-04 10:41:23 -0300 | [diff] [blame] | 23 | - "sig-rsa enc-rsa validate-primary-slot,swap-move enc-rsa sig-rsa validate-primary-slot bootstrap" |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 24 | - "sig-rsa enc-kw validate-primary-slot bootstrap,sig-ed25519 enc-x25519 validate-primary-slot" |
| 25 | - "sig-ecdsa enc-kw validate-primary-slot" |
Fabio Utzig | 10c97ba | 2020-09-25 16:37:43 -0300 | [diff] [blame] | 26 | - "sig-rsa validate-primary-slot overwrite-only large-write" |
| 27 | - "sig-ecdsa enc-ec256 validate-primary-slot" |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 28 | - "sig-rsa validate-primary-slot overwrite-only downgrade-prevention" |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 29 | runs-on: ubuntu-latest |
| 30 | env: |
| 31 | MULTI_FEATURES: ${{ matrix.features }} |
| 32 | steps: |
| 33 | - uses: actions/checkout@v2 |
| 34 | with: |
Fabio Utzig | af48fce | 2020-09-29 09:26:29 -0300 | [diff] [blame] | 35 | fetch-depth: 0 |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 36 | submodules: recursive |
| 37 | - name: Print the environment |
| 38 | run: | |
| 39 | uname -a |
| 40 | lscpu |
| 41 | free |
| 42 | pwd |
Fabio Utzig | af48fce | 2020-09-29 09:26:29 -0300 | [diff] [blame] | 43 | - name: Signed commit check |
Fabio Utzig | d2122bc | 2020-11-12 13:41:57 -0300 | [diff] [blame] | 44 | if: ${{ github.event_name == 'pull_request' }} |
Fabio Utzig | af48fce | 2020-09-29 09:26:29 -0300 | [diff] [blame] | 45 | run: | |
| 46 | ./ci/check-signed-off-by.sh |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 47 | - name: Install stable Rust |
| 48 | uses: actions-rs/toolchain@v1 |
| 49 | with: |
| 50 | toolchain: stable |
| 51 | - name: Sim install |
| 52 | run: | |
| 53 | ./ci/sim_install.sh |
| 54 | - name: Sim run |
| 55 | run: | |
| 56 | ./ci/sim_run.sh |