try new demos #18
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
name: CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'hal/**' | |
- 'platformio.ini' | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Linux dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsdl2-dev | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install PlatformIO | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U platformio | |
platformio update | |
- name: Build bare metal (stm32f429_disco) | |
run: platformio run -e stm32f429_disco | |
- name: Build emulator (sdl2, 64bits) | |
run: platformio run -e emulator_64bits | |
Linux_i386: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Linux dependencies | |
run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install libsdl2-dev:i386 gcc-multilib g++-multilib | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install PlatformIO | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U platformio | |
platformio update | |
- name: Build emulator (sdl2, 32bits) | |
run: platformio run -e emulator_32bits | |
macOS: | |
runs-on: macos-latest | |
steps: | |
- name: Install macOS dependencies | |
run: | | |
HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2 | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install PlatformIO | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U platformio | |
platformio update | |
- name: Build bare metal (stm32f429_disco) | |
run: platformio run -e stm32f429_disco | |
- name: Build emulator (sdl2, 64bits) | |
run: platformio run -e emulator_64bits | |
Windows: | |
runs-on: windows-2019 | |
steps: | |
- name: Activate msys2 & mingw64 | |
run: | | |
echo "C:\msys64\usr\bin" >> $env:GITHUB_PATH | |
echo "C:\msys64\mingw64\bin" >> $env:GITHUB_PATH | |
- name: Install deps | |
run: | | |
pacman --noconfirm -S --needed mingw-w64-x86_64-SDL2 | |
gcc --version | |
- uses: actions/checkout@v4 | |
#- uses: actions/setup-python@v1 | |
- name: Install PlatformIO | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U platformio | |
platformio update | |
- name: Build bare metal (stm32f429_disco) | |
run: platformio run -e stm32f429_disco | |
- name: Build emulator (sdl2, 64bits) | |
run: platformio run -e emulator_64bits |