1
+ name : PlatformIO
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' **'
7
+ pull_request :
8
+ branches :
9
+ - ' **'
10
+
11
+ jobs :
12
+ espBuild :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ - uses : actions/cache@v3
18
+ with :
19
+ path : |
20
+ ~/.cache/pip
21
+ ~/.platformio/.cache
22
+ key : ${{ runner.os }}-pio
23
+ - uses : actions/setup-python@v4
24
+ with :
25
+ python-version : ' 3.11'
26
+ - name : Install PlatformIO Core
27
+ run : pip install --upgrade platformio
28
+
29
+ - name : Build PlatformIO Project for Paxo ESP32
30
+ run : pio run -e paxo-v5
31
+
32
+ linuxBuild :
33
+ runs-on : ubuntu-latest
34
+
35
+ steps :
36
+ - uses : actions/checkout@v3
37
+ - uses : actions/cache@v3
38
+ with :
39
+ path : |
40
+ ~/.cache/pip
41
+ ~/.platformio/.cache
42
+ key : ${{ runner.os }}-pio
43
+ - uses : actions/setup-python@v4
44
+ with :
45
+ python-version : ' 3.11'
46
+ - name : Install PlatformIO Core
47
+ run : pip install --upgrade platformio
48
+
49
+ - name : Install SDL2
50
+ 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
51
+
52
+ - name : Build PlatformIO Project for Linux
53
+ run : pio run -e linux
54
+
55
+ macOSBuild :
56
+ runs-on : macos-latest
57
+
58
+ steps :
59
+ - uses : actions/checkout@v3
60
+ - uses : actions/cache@v3
61
+ with :
62
+ path : |
63
+ ~/.cache/pip
64
+ ~/.platformio/.cache
65
+ key : ${{ runner.os }}-pio
66
+ - uses : actions/setup-python@v4
67
+ with :
68
+ python-version : ' 3.11'
69
+ - name : Install PlatformIO Core
70
+ run : pip install --upgrade platformio
71
+
72
+ - name : Install SDL2
73
+ run : brew install SDL2
74
+
75
+ - name : Build PlatformIO Project for macOS
76
+ run : DYLD_LIBRARY_PATH="`brew --prefix sdl2`/lib" pio run -e macos
77
+ windowsBuild :
78
+ runs-on : windows-latest
79
+
80
+ steps :
81
+ - uses : actions/checkout@v3
82
+ - uses : actions/cache@v3
83
+ with :
84
+ path : |
85
+ ~/.cache/pip
86
+ ~/.platformio/.cache
87
+ key : ${{ runner.os }}-pio
88
+ - uses : actions/setup-python@v4
89
+ with :
90
+ python-version : ' 3.11'
91
+ - name : Install PlatformIO Core
92
+ run : pip install --upgrade platformio
93
+
94
+ - name : Build PlatformIO Project for Windows
95
+ run : pio run -e windows-build-only
0 commit comments