Skip to content

Commit 2ac0c5d

Browse files
julek-wolfssldanielinux
authored andcommitted
Add CI
1 parent fd10a1d commit 2ac0c5d

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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@v4
15+
with:
16+
submodules: true
17+
18+
- name: Install build dependencies
19+
run: sudo apt-get update && sudo apt-get install -y build-essential
20+
21+
- name: Set simulation config and build signed boot partition
22+
run: |
23+
cp config/examples/sim.config .config
24+
make clean
25+
make
26+
27+
- name: Check for internal_flash.dd
28+
run: |
29+
if [ ! -f internal_flash.dd ]; then
30+
echo "Error: internal_flash.dd not found. Build may have failed."
31+
exit 1
32+
fi
33+
34+
- name: Switch to library_fs config
35+
run: cp config/examples/library_fs.config .config
36+
37+
- name: Clean and build lib-fs
38+
run: |
39+
make clean
40+
make lib-fs
41+
42+
- name: Mark BOOT partition as SUCCESS
43+
run: ./lib-fs success
44+
45+
- name: Verify BOOT partition integrity and authenticity
46+
run: ./lib-fs verify-boot

0 commit comments

Comments
 (0)