Skip to content

Commit 6eb5991

Browse files
committed
update
1 parent f855c53 commit 6eb5991

File tree

3 files changed

+38
-96
lines changed

3 files changed

+38
-96
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -6,102 +6,59 @@ on:
66
- main
77
paths:
88
- 'src/**'
9+
- 'hal/**'
910
- 'platformio.ini'
1011

1112
jobs:
12-
Linux:
13-
runs-on: ubuntu-latest
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
environment:
18+
- "stm32f429_disco"
19+
- "emulator_64bits"
20+
os: [ubuntu-latest, windows-latest, macos-latest]
21+
22+
runs-on: ${{ matrix.os }}
1423
steps:
15-
- name: Install Linux dependencies
16-
run: |
17-
sudo apt-get update
18-
sudo apt-get install libsdl2-dev
19-
2024
- uses: actions/checkout@v4
21-
- uses: actions/setup-python@v5
22-
23-
- name: Install PlatformIO
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install -U platformio
27-
platformio update
25+
with:
26+
token: ${{ secrets.OSQ_REPO_TOKEN }}
2827

29-
- name: Build bare metal (stm32f429_disco)
30-
run: platformio run -e stm32f429_disco
3128

32-
- name: Build emulator (sdl2, 64bits)
33-
run: platformio run -e emulator_64bits
34-
35-
36-
#Linux_i386:
37-
# runs-on: ubuntu-latest
38-
# steps:
39-
# - name: Install Linux dependencies
40-
# run: |
41-
# sudo dpkg --add-architecture i386
42-
# sudo apt-get update
43-
# sudo apt-get install libsdl2-dev:i386 gcc-multilib g++-multilib
44-
#
45-
# - uses: actions/checkout@v4
46-
# - uses: actions/setup-python@v5
47-
#
48-
# - name: Install PlatformIO
49-
# run: |
50-
# python -m pip install --upgrade pip
51-
# pip install -U platformio
52-
# platformio update
53-
#
54-
# - name: Build emulator (sdl2, 32bits)
55-
# run: platformio run -e emulator_32bits
56-
57-
58-
macOS:
59-
runs-on: macos-latest
60-
steps:
61-
- name: Install macOS dependencies
62-
run: |
63-
HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2
64-
65-
- uses: actions/checkout@v4
66-
- uses: actions/setup-python@v5
29+
- name: Setup Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.10"
6733

6834
- name: Install PlatformIO
6935
run: |
7036
python -m pip install --upgrade pip
7137
pip install -U platformio
7238
platformio update
7339
74-
- name: Build bare metal (stm32f429_disco)
75-
run: platformio run -e stm32f429_disco
40+
# - name: Install dependencies
41+
# run: |
42+
# pip install -U https://github.com/OS-Q/pio/archive/main.zip
7643

77-
- name: Build emulator (sdl2, 64bits)
78-
run: platformio run -e emulator_64bits
44+
- name: Run on Linux
45+
if: startsWith(matrix.os, 'ubuntu')
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install libsdl2-dev
49+
platformio run -e ${{ matrix.environment }}
7950
51+
- name: Run on macOS
52+
if: startsWith(matrix.os, 'macos')
53+
run: |
54+
HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2
55+
platformio run -e ${{ matrix.environment }}
8056
81-
Windows:
82-
runs-on: windows-latest
83-
steps:
84-
- name: Activate msys2 & mingw64
57+
- name: Run on Windows
58+
if: startsWith(matrix.os, 'windows')
8559
run: |
8660
echo "C:\msys64\usr\bin" >> $env:GITHUB_PATH
8761
echo "C:\msys64\mingw64\bin" >> $env:GITHUB_PATH
88-
89-
- name: Install deps
90-
run: |
9162
pacman --noconfirm -S --needed mingw-w64-x86_64-SDL2
9263
gcc --version
93-
94-
- uses: actions/checkout@v4
95-
#- uses: actions/setup-python@v5
96-
97-
- name: Install PlatformIO
98-
run: |
99-
python -m pip install --upgrade pip
100-
pip install -U platformio
101-
platformio update
102-
103-
- name: Build bare metal (stm32f429_disco)
104-
run: platformio run -e stm32f429_disco
105-
106-
- name: Build emulator (sdl2, 64bits)
107-
run: platformio run -e emulator_64bits
64+
platformio run -e ${{ matrix.environment }}

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
.piolibdeps
44
.clang_complete
55
.gcc-flags.json
6-
7-
.vscode/.browse.c_cpp.db*
8-
.vscode/c_cpp_properties.json
9-
.vscode/launch.json
10-
.vscode/settings.json
11-
.vscode/ipch
6+
.vscode/

platformio.ini

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ build_flags =
1313
; Add more defines below to overide lvgl:/src/lv_conf_simple.h
1414
lib_deps =
1515
; Use direct URL, because package registry is unstable
16-
lvgl=https://github.com/lvgl/lvgl/archive/refs/tags/v8.4.0.zip
16+
lvgl=https://github.com/lvgl/lvgl/archive/refs/tags/v8.3.11.zip
1717
lib_archive = false
1818

1919

2020
[env:emulator_64bits]
21-
platform = native@^1.1.3
21+
platform = native@^1.2.1
2222
extra_scripts = support/sdl2_build_extra.py
2323
build_flags =
2424
${env.build_flags}
@@ -55,18 +55,8 @@ build_src_filter =
5555
+<../.pio/libdeps/emulator_64bits/lvgl/demos>
5656

5757

58-
[env:emulator_32bits]
59-
extends = env:emulator_64bits
60-
build_flags =
61-
${env:emulator_64bits.build_flags}
62-
-m32
63-
build_src_filter =
64-
+<*>
65-
+<../hal/sdl2>
66-
+<../.pio/libdeps/emulator_32bits/lvgl/demos>
67-
6858
[env:stm32f429_disco]
69-
platform = ststm32@^8.0.0
59+
platform = ststm32
7060
board = disco_f429zi
7161
framework = stm32cube
7262
build_flags =

0 commit comments

Comments
 (0)