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: |
David Brown | fe0bfcf | 2021-05-14 10:12:10 -0600 | [diff] [blame] | 5 | - main |
Fabio Utzig | 6dd2907 | 2020-11-12 13:16:46 -0300 | [diff] [blame] | 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 | |
Gustavo Henrique Nihei | e571855 | 2021-12-17 10:35:59 -0300 | [diff] [blame] | 10 | concurrency: |
| 11 | group: sim-${{ github.event.pull_request.number || github.ref }} |
| 12 | cancel-in-progress: true |
| 13 | |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 14 | jobs: |
| 15 | environment: |
| 16 | strategy: |
| 17 | matrix: |
| 18 | features: |
David Brown | 218aee7 | 2021-02-19 12:18:51 -0700 | [diff] [blame] | 19 | - "sig-ecdsa,sig-ecdsa-mbedtls,sig-ed25519,enc-kw,bootstrap" |
Fabio Utzig | 10c97ba | 2020-09-25 16:37:43 -0300 | [diff] [blame] | 20 | - "sig-rsa,sig-rsa3072,overwrite-only,validate-primary-slot,swap-move" |
Gustavo Henrique Nihei | 7bfd14b | 2021-11-24 23:27:22 -0300 | [diff] [blame] | 21 | - "enc-rsa,enc-rsa max-align-32" |
| 22 | - "enc-aes256-rsa,enc-aes256-rsa max-align-32" |
| 23 | - "enc-ec256,enc-ec256 max-align-32" |
| 24 | - "enc-aes256-ec256,enc-aes256-ec256 max-align-32" |
| 25 | - "enc-x25519,enc-x25519 max-align-32" |
| 26 | - "enc-aes256-x25519,enc-aes256-x25519 max-align-32" |
| 27 | - "sig-rsa overwrite-only,sig-ecdsa overwrite-only,sig-ecdsa-mbedtls overwrite-only,multiimage overwrite-only" |
David Brown | 218aee7 | 2021-02-19 12:18:51 -0700 | [diff] [blame] | 28 | - "sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot,sig-ecdsa-mbedtls validate-primary-slot,sig-rsa multiimage validate-primary-slot" |
Gustavo Henrique Nihei | 7bfd14b | 2021-11-24 23:27:22 -0300 | [diff] [blame] | 29 | - "enc-kw overwrite-only,enc-kw overwrite-only max-align-32" |
| 30 | - "enc-rsa overwrite-only,enc-rsa overwrite-only max-align-32" |
| 31 | - "enc-aes256-kw overwrite-only,enc-aes256-kw overwrite-only max-align-32" |
Fabio Utzig | 0d02976 | 2020-10-04 10:41:23 -0300 | [diff] [blame] | 32 | - "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] | 33 | - "sig-rsa enc-kw validate-primary-slot bootstrap,sig-ed25519 enc-x25519 validate-primary-slot" |
| 34 | - "sig-ecdsa enc-kw validate-primary-slot" |
David Brown | 218aee7 | 2021-02-19 12:18:51 -0700 | [diff] [blame] | 35 | - "sig-ecdsa-mbedtls enc-kw validate-primary-slot" |
Gustavo Henrique Nihei | 7bfd14b | 2021-11-24 23:27:22 -0300 | [diff] [blame] | 36 | - "sig-rsa validate-primary-slot overwrite-only,sig-rsa validate-primary-slot overwrite-only max-align-32" |
Fabio Utzig | 10c97ba | 2020-09-25 16:37:43 -0300 | [diff] [blame] | 37 | - "sig-ecdsa enc-ec256 validate-primary-slot" |
Fabio Utzig | c932b32 | 2021-05-06 20:00:08 -0300 | [diff] [blame] | 38 | - "sig-ecdsa-mbedtls enc-ec256-mbedtls validate-primary-slot" |
Salome Thirot | 7084b2f | 2021-05-14 16:46:50 +0100 | [diff] [blame] | 39 | - "sig-ecdsa-mbedtls enc-aes256-ec256 validate-primary-slot" |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 40 | - "sig-rsa validate-primary-slot overwrite-only downgrade-prevention" |
David Brown | fb40f0c | 2021-05-26 17:13:34 -0600 | [diff] [blame] | 41 | - "sig-rsa validate-primary-slot ram-load" |
Fabio Utzig | 14c785b | 2021-10-07 12:13:53 -0300 | [diff] [blame] | 42 | - "sig-rsa enc-rsa validate-primary-slot ram-load" |
David Brown | fb40f0c | 2021-05-26 17:13:34 -0600 | [diff] [blame] | 43 | - "sig-rsa validate-primary-slot direct-xip" |
David Brown | d505bcf | 2021-06-23 16:17:21 -0600 | [diff] [blame] | 44 | - "sig-rsa validate-primary-slot ram-load multiimage" |
| 45 | - "sig-rsa validate-primary-slot direct-xip multiimage" |
Roland Mikhel | 9a82eca | 2023-05-03 14:14:03 +0200 | [diff] [blame] | 46 | - "sig-ecdsa hw-rollback-protection multiimage" |
Roland Mikhel | 7ecffd4 | 2023-04-20 16:56:18 +0200 | [diff] [blame] | 47 | - "ram-load enc-aes256-kw multiimage" |
| 48 | - "ram-load enc-aes256-kw sig-ecdsa-mbedtls multiimage" |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 49 | runs-on: ubuntu-latest |
| 50 | env: |
| 51 | MULTI_FEATURES: ${{ matrix.features }} |
| 52 | steps: |
| 53 | - uses: actions/checkout@v2 |
| 54 | with: |
Fabio Utzig | af48fce | 2020-09-29 09:26:29 -0300 | [diff] [blame] | 55 | fetch-depth: 0 |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 56 | submodules: recursive |
| 57 | - name: Print the environment |
| 58 | run: | |
| 59 | uname -a |
| 60 | lscpu |
| 61 | free |
| 62 | pwd |
Fabio Utzig | af48fce | 2020-09-29 09:26:29 -0300 | [diff] [blame] | 63 | - name: Signed commit check |
Fabio Utzig | d2122bc | 2020-11-12 13:41:57 -0300 | [diff] [blame] | 64 | if: ${{ github.event_name == 'pull_request' }} |
Fabio Utzig | af48fce | 2020-09-29 09:26:29 -0300 | [diff] [blame] | 65 | run: | |
| 66 | ./ci/check-signed-off-by.sh |
David Brown | 2d99cba | 2020-06-15 09:15:10 -0600 | [diff] [blame] | 67 | - name: Install stable Rust |
| 68 | uses: actions-rs/toolchain@v1 |
| 69 | with: |
| 70 | toolchain: stable |
| 71 | - name: Sim install |
| 72 | run: | |
| 73 | ./ci/sim_install.sh |
| 74 | - name: Sim run |
| 75 | run: | |
| 76 | ./ci/sim_run.sh |