Skip to content

CI

CI #249

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 3'
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@v2
- 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
#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@v2
# - uses: actions/setup-python@v1
#
# - 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@v2
- 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
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@v2
#- 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