-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:paxo-phone/PaxOS-9
- Loading branch information
Showing
4 changed files
with
129 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: PlatformIO | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
espBuild: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio | ||
|
||
- name: Build PlatformIO Project for Paxo ESP32 | ||
run: pio run -e paxo-v5 | ||
|
||
linuxBuild: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio | ||
|
||
- name: Install SDL2 | ||
run: sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" && sudo apt-get update -y -qq && sudo apt-get install libsdl2-dev | ||
|
||
- name: Build PlatformIO Project for Linux | ||
run: pio run -e linux | ||
|
||
macOSBuild: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio | ||
|
||
- name: Install SDL2 | ||
run: brew install SDL2 | ||
|
||
- name: Build PlatformIO Project for macOS | ||
run: DYLD_LIBRARY_PATH="`brew --prefix sdl2`/lib" pio run -e macos | ||
windowsBuild: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio | ||
|
||
- name: Build PlatformIO Project for Windows | ||
run: pio run -e windows-build-only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,26 @@ extra_scripts = | |
scripts/platformio/windows/execute.py | ||
targets = execute | ||
|
||
[env:windows-build-only] | ||
platform = native | ||
lib_deps = | ||
lovyan03/LovyanGFX@^1.1.9 | ||
plerup/EspSoftwareSerial@^8.2.0 | ||
maxgerhardt/ghostl@^1.0.1 | ||
mbed-babylonica/[email protected]+sha.278f7f125495 | ||
build_flags = | ||
-std=c++17 | ||
-lm | ||
-Iextern/SDL2-2.28.5/x86_64-w64-mingw32/include/SDL2 | ||
-Lextern/SDL2-2.28.5/x86_64-w64-mingw32/lib | ||
-lSDL2main | ||
-lSDL2 | ||
-m64 | ||
-Wa,-mbig-obj | ||
extra_scripts = | ||
pre:scripts/platformio/windows/setup_workspace.py | ||
pre:scripts/platformio/windows/copy_dependencies.py | ||
|
||
[env:linux] | ||
platform = native | ||
lib_deps = | ||
|
@@ -106,6 +126,10 @@ build_flags = | |
-lm | ||
-lSDL2main | ||
-lSDL2 | ||
-I/usr/local/include/SDL2 # we include both /usr/local/ and /opt/homebrew/ to support the macOS silicon and Intel as explained here https://stackoverflow.com/a/71186857/16456439 | ||
-L/usr/local/lib | ||
-I/opt/homebrew/include/SDL2 | ||
-L/opt/homebrew/lib | ||
|
||
[env:test] | ||
platform = native | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters