@@ -21,44 +21,54 @@ jobs:
21
21
22
22
runs-on : ${{ matrix.os }}
23
23
steps :
24
- - uses : actions/checkout@v4
24
+ - name : Checkout code
25
+ uses : actions/checkout@v4
25
26
with :
26
- token : ${{ secrets.OSQ_REPO_TOKEN }}
27
+ token : ${{ secrets.OSQ_REPO_TOKEN }}
28
+
29
+ - name : Setup MSYS2
30
+ if : startsWith(matrix.os, 'windows') && startsWith(matrix.environment, 'emulator_64bits')
31
+ uses : msys2/setup-msys2@v2
32
+ with :
33
+ msystem : mingw64
27
34
28
35
29
36
- name : Setup Python
30
37
uses : actions/setup-python@v5
31
38
with :
32
- python-version : ' 3.11'
33
- architecture : ' x64'
39
+ python-version : ' 3.11'
40
+ architecture : ' x64'
34
41
35
- - name : Install PlatformIO
42
+ - name : Setup PlatformIO
36
43
run : |
37
- python -m pip install --upgrade pip
38
- pip install -U platformio
39
- platformio update
44
+ python -m pip install --upgrade pip
45
+ pip install platformio
40
46
41
- # - name: Install dependencies
42
- # run: |
43
- # pip install -U https://github.com/OS-Q/pio/archive/main.zip
47
+ # - name: Install dependencies
48
+ # run: |
49
+ # pip install -U https://github.com/OS-Q/pio/archive/main.zip
44
50
45
51
- name : Run on Linux
46
52
if : startsWith(matrix.os, 'ubuntu')
47
53
run : |
48
- sudo apt-get update
49
- sudo apt-get install libsdl2-dev
50
- platformio run -e ${{ matrix.environment }}
54
+ sudo apt-get update
55
+ sudo apt-get install libsdl2-dev
56
+ platformio run -e ${{ matrix.environment }}
51
57
52
58
- name : Run on macOS
53
59
if : startsWith(matrix.os, 'macos')
54
60
run : |
55
- HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2
56
- platformio run -e ${{ matrix.environment }}
61
+ HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2
62
+ platformio run -e ${{ matrix.environment }}
63
+
64
+ - name : Windows SDL2
65
+ if : startsWith(matrix.os, 'windows') && startsWith(matrix.environment, 'emulator_64bits')
66
+ shell : msys2 {0}
67
+ run : |
68
+ pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2
69
+ platformio run -e ${{ matrix.environment }}
57
70
58
71
- name : Run on Windows
59
- if : startsWith(matrix.os, 'windows')
60
- - uses : msys2/setup-msys2@v2
61
- with :
62
- msystem : mingw64
63
- install : mingw-w64-x86_64-SDL2
64
- run : platformio run -e ${{ matrix.environment }}
72
+ if : startsWith(matrix.os, 'windows') && !startsWith(matrix.environment, 'emulator_64bits')
73
+ run : |
74
+ platformio run -e ${{ matrix.environment }}
0 commit comments