-
Notifications
You must be signed in to change notification settings - Fork 57
39 lines (38 loc) · 1.45 KB
/
test-windows.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
name: SplashKit Core Windows
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
env:
SDL_AUDIODRIVER: disk
strategy:
matrix:
include: [
{ msystem: MINGW64, arch: x86_64, path: win64 },
# { msystem: MINGW32, arch: i686, path: win32 }
]
defaults:
run:
shell: msys2 {0}
working-directory: projects/cmake
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
path-type: inherit
update: true
install: git make wget tar patch dos2unix diffutils ca-certificates mingw-w64-${{ matrix.arch }}-make mingw-w64-${{ matrix.arch }}-cmake mingw-w64-${{ matrix.arch }}-ca-certificates mingw-w64-${{ matrix.arch }}-gcc mingw-w64-${{ matrix.arch }}-libpng cmake mingw-w64-${{ matrix.arch }}-SDL2 mingw-w64-${{ matrix.arch }}-SDL2_gfx mingw-w64-${{ matrix.arch }}-SDL2_image mingw-w64-${{ matrix.arch }}-SDL2_mixer mingw-w64-${{ matrix.arch }}-SDL2_net mingw-w64-${{ matrix.arch }}-SDL2_sound mingw-w64-${{ matrix.arch }}-SDL2_ttf
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: build
working-directory: ./projects/cmake
run: |
cmake -G "Unix Makefiles" .
make -j 2
- name: execute
working-directory: ./bin
run: |
export PATH=../coresdk/lib/${{ matrix.path }}:$PATH
echo $PATH
./skunit_tests