Skip to content

Commit 0b60eb1

Browse files
committed
Add CI
1 parent f585490 commit 0b60eb1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test Filesystem
2+
3+
on:
4+
push:
5+
branches: [ 'master', 'main', 'release/**' ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
build-lib-fs-example:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Install build dependencies
17+
run: sudo apt-get update && sudo apt-get install -y build-essential
18+
19+
- name: Set simulation config and build signed boot partition
20+
run: |
21+
cp config/examples/sim.config .config
22+
make clean
23+
make
24+
25+
- name: Check for internal_flash.dd
26+
run: |
27+
if [ ! -f internal_flash.dd ]; then
28+
echo "Error: internal_flash.dd not found. Build may have failed."
29+
exit 1
30+
fi
31+
32+
- name: Switch to library_fs config
33+
run: cp config/examples/library_fs.config .config
34+
35+
- name: Clean and build lib-fs
36+
run: |
37+
make clean
38+
make lib-fs
39+
40+
- name: Mark BOOT partition as SUCCESS
41+
run: ./lib-fs success
42+
43+
- name: Verify BOOT partition integrity and authenticity
44+
run: ./lib-fs verify-boot

0 commit comments

Comments
 (0)