Skip to content

Commit 3ad1664

Browse files
kubamracekrauhul
authored andcommitted
Add CI setup for stm32-lvgl
1 parent cef2c0a commit 3ad1664

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.github/workflows/build-stm.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
example: [stm32-blink]
17+
example: [stm32-blink, stm32-lvgl]
1818

1919
steps:
2020
- name: Checkout repo
2121
uses: actions/checkout@v4
2222

23+
- name: Fixup for running locally in act
24+
if: ${{ env.ACT }}
25+
run: echo /opt/acttoolcache/node/18.20.8/x64/bin >> $GITHUB_PATH
26+
2327
- name: Set up Python
2428
uses: actions/setup-python@v5
2529
with:
@@ -34,5 +38,12 @@ jobs:
3438
- name: Build ${{ matrix.example }}
3539
working-directory: ${{ matrix.example }}
3640
run: |
37-
export STM_BOARD=STM32F746G_DISCOVERY
38-
./build-elf.sh
41+
if [[ "${{ matrix.example }}" == "stm32-blink" ]]; then
42+
export STM_BOARD=STM32F746G_DISCOVERY
43+
./build-elf.sh
44+
elif [[ "${{ matrix.example }}" == "stm32-lvgl" ]]; then
45+
./fetch-dependencies.sh
46+
make
47+
else
48+
exit 1
49+
fi

Tools/elf2hex.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ def main():
4343
outf = open(args.output, "wb")
4444

4545
relocations = {}
46-
for r in args.relocate:
47-
(a, b) = r.split(":")
48-
relocations[int(a, 16)] = int(b, 16)
46+
if args.relocate is not None:
47+
for r in args.relocate:
48+
(a, b) = r.split(":")
49+
relocations[int(a, 16)] = int(b, 16)
4950

5051
def emitrecord(record):
5152
checksum = 0

stm32-lvgl/fetch-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ fi
6060
###
6161

6262
rm -rf ./lvgl || true
63-
git clone git@github.com:lvgl/lvgl.git --branch release/v9.2
63+
git clone https://github.com/lvgl/lvgl.git --branch release/v9.2

0 commit comments

Comments
 (0)