2024-03-12 18:19:48 -04:00
|
|
|
name: Windows build
|
2024-03-12 17:53:29 -04:00
|
|
|
|
|
|
|
on: [push,workflow_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { sys: xtensa }
|
|
|
|
- { sys: mingw64, env: x86_64 }
|
|
|
|
- { sys: mingw32, env: i686 }
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache/pip
|
|
|
|
~/.platformio/.cache
|
|
|
|
key: ${{ runner.os }}-pio
|
|
|
|
- uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: "3.12"
|
|
|
|
|
|
|
|
- name: Install MSYS2 MINGW64/32 and SDL2
|
|
|
|
if: ${{matrix.sys != 'xtensa'}}
|
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
2024-03-13 09:55:41 -04:00
|
|
|
update: true
|
2024-03-12 17:53:29 -04:00
|
|
|
msystem: ${{matrix.sys}}
|
|
|
|
install: >-
|
|
|
|
mingw-w64-${{matrix.env}}-gcc
|
|
|
|
mingw-w64-${{matrix.env}}-SDL2
|
2024-03-13 09:55:41 -04:00
|
|
|
- name: Add paths mingw64
|
|
|
|
if: ${{matrix.sys == 'mingw64'}}
|
|
|
|
run: |
|
2024-03-13 10:01:51 -04:00
|
|
|
echo "${{runner.temp}}\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "${{runner.temp}}\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
2024-03-13 09:55:41 -04:00
|
|
|
- name: Add paths mingw32
|
|
|
|
if: ${{matrix.sys == 'mingw32'}}
|
|
|
|
run: |
|
2024-03-13 10:01:51 -04:00
|
|
|
echo "${{runner.temp}}\msys64\mingw32\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "${{runner.temp}}\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
2024-03-13 04:53:46 -04:00
|
|
|
|
2024-03-12 17:53:29 -04:00
|
|
|
- name: Install PlatformIO Core
|
|
|
|
run: pip install --upgrade platformio
|
|
|
|
|
|
|
|
- name: Build PlatformIO env:ESP32
|
|
|
|
working-directory: ./Platformio
|
|
|
|
run: pio run -e esp32
|
|
|
|
|
2024-03-18 15:20:59 -04:00
|
|
|
- name: Build PlatformIO env:windows_64bit
|
2024-03-12 17:53:29 -04:00
|
|
|
if: ${{matrix.sys == 'mingw64'}}
|
|
|
|
working-directory: ./Platformio
|
2024-03-18 15:20:59 -04:00
|
|
|
run: pio run -e windows_64bit
|
2024-03-12 17:53:29 -04:00
|
|
|
|
2024-03-18 15:20:59 -04:00
|
|
|
- name: Build PlatformIO env:windows_32bit
|
2024-03-12 17:53:29 -04:00
|
|
|
if: ${{matrix.sys == 'mingw32'}}
|
|
|
|
working-directory: ./Platformio
|
2024-03-18 15:20:59 -04:00
|
|
|
run: pio run -e windows_32bit
|