-
Notifications
You must be signed in to change notification settings - Fork 93
105 lines (84 loc) · 2.57 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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