Skip to content

Commit f833e23

Browse files
committed
Update main.yml
1 parent 67cf36d commit f833e23

File tree

1 file changed

+53
-51
lines changed

1 file changed

+53
-51
lines changed

.github/workflows/main.yml

Lines changed: 53 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,58 @@
11
name: Build
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
1010

1111
jobs:
12-
Ubuntu-Bulid:
13-
name: Build on ${{ matrix.os }}
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
19-
steps:
20-
- uses: actions/checkout@v3
21-
- run: |
22-
sudo apt-get install -y debhelper quilt scons libglu1-mesa-dev libvorbis-dev \
23-
libspeex-dev libfreetype6-dev libboost-dev libboost-thread-dev \
24-
libboost-date-time-dev libfribidi-dev portaudio19-dev libboost-math-dev \
25-
dpkg-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-net-dev
26-
scons -j16
27-
#dpkg-buildpackage -I.hg
28-
Windows-Build:
29-
runs-on: windows-2022
30-
defaults:
31-
run:
32-
shell: msys2 {0}
33-
steps:
34-
- uses: msys2/setup-msys2@v2
35-
with:
36-
#update: true
37-
install: >-
38-
base-devel
39-
git
40-
msys/scons
41-
msys/quilt
42-
mingw64/mingw-w64-x86_64-SDL2
43-
mingw64/mingw-w64-x86_64-SDL2_image
44-
mingw64/mingw-w64-x86_64-SDL2_net
45-
mingw64/mingw-w64-x86_64-SDL2_ttf
46-
mingw64/mingw-w64-x86_64-mesa
47-
mingw64/mingw-w64-x86_64-libvorbis
48-
mingw64/mingw-w64-x86_64-speex
49-
mingw64/mingw-w64-x86_64-freetype
50-
mingw64/mingw-w64-x86_64-boost
51-
mingw64/mingw-w64-x86_64-fribidi
52-
mingw64/mingw-w64-x86_64-portaudio
53-
- shell: cmd
54-
run: git config --global core.autocrlf input
55-
- uses: actions/checkout@v3
56-
- run: scons -j16
12+
Ubuntu-Bulid:
13+
name: Build on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
19+
steps:
20+
- uses: actions/checkout@v3
21+
- run: |
22+
sudo apt-get install -y debhelper quilt scons libglu1-mesa-dev libvorbis-dev \
23+
libspeex-dev libfreetype6-dev libboost-dev libboost-thread-dev \
24+
libboost-date-time-dev libfribidi-dev portaudio19-dev libboost-math-dev \
25+
dpkg-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-net-dev
26+
scons -j16
27+
dpkg-buildpackage -I.hg
28+
29+
Windows-Build:
30+
name: Build on windows-2022 msys2
31+
runs-on: windows-2022
32+
defaults:
33+
run:
34+
shell: msys2 {0}
35+
steps:
36+
- uses: msys2/setup-msys2@v2
37+
with:
38+
#update: true
39+
install: >-
40+
base-devel
41+
git
42+
msys/scons
43+
msys/quilt
44+
mingw64/mingw-w64-x86_64-SDL2
45+
mingw64/mingw-w64-x86_64-SDL2_image
46+
mingw64/mingw-w64-x86_64-SDL2_net
47+
mingw64/mingw-w64-x86_64-SDL2_ttf
48+
mingw64/mingw-w64-x86_64-mesa
49+
mingw64/mingw-w64-x86_64-libvorbis
50+
mingw64/mingw-w64-x86_64-speex
51+
mingw64/mingw-w64-x86_64-freetype
52+
mingw64/mingw-w64-x86_64-boost
53+
mingw64/mingw-w64-x86_64-fribidi
54+
mingw64/mingw-w64-x86_64-portaudio
55+
- shell: cmd
56+
run: git config --global core.autocrlf input
57+
- uses: actions/checkout@v3
58+
- run: scons -j16

0 commit comments

Comments
 (0)