-
Notifications
You must be signed in to change notification settings - Fork 146
58 lines (47 loc) · 1.74 KB
/
test-sim-self-update.yml
File metadata and controls
58 lines (47 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Simulator self-update and self-header tests
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
jobs:
self_update_simulator_test:
runs-on: ubuntu-latest
container:
image: ghcr.io/wolfssl/wolfboot-ci-sim:v1.0
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Trust workspace
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Run self-update test (internal flash)
run: |
cp config/examples/sim-self-update.config .config
make test-sim-self-update
- name: Run self-update test (external flash)
run: |
make clean
cp config/examples/sim-self-update-ext.config .config
make test-sim-self-update-ext
- name: Run monolithic self-update test
run: |
make clean
cp config/examples/sim-self-update-monolithic.config .config
make test-sim-self-update-monolithic
- name: Run self-header verification test (internal flash)
run: |
make clean
cp config/examples/sim-self-header.config .config
make test-sim-self-header-verify
- name: Run self-header verification test (external flash)
run: |
make clean
cp config/examples/sim-self-header-ext.config .config
make test-sim-self-header-ext-verify
- name: Run combined monolithic self-update + self-header test
run: |
make clean
cp config/examples/sim-self-update-monolithic.config .config
make test-sim-self-update-monolithic-self-header WOLFBOOT_SELF_HEADER=1 WOLFBOOT_PARTITION_SELF_HEADER_ADDRESS=0x1F000