-
Notifications
You must be signed in to change notification settings - Fork 51
75 lines (63 loc) · 2.02 KB
/
windows-release.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
name: windows-release
on:
push:
tags:
- "v*.*"
workflow_dispatch:
jobs:
build-windows-release:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
git zip perl make
mingw-w64-x86_64-binutils mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-pkgconf
mingw-w64-x86_64-SDL2 mingw-w64-x86_64-freetype mingw-w64-x86_64-glm
mingw-w64-x86_64-glew mingw-w64-x86_64-libconfig mingw-w64-x86_64-tinyxml2
mingw-w64-x86_64-mpv mingw-w64-x86_64-zlib mingw-w64-x86_64-minizip mingw-w64-x86_64-libarchive
- name: '🧰 Checkout'
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure
run: |
cd $GITHUB_WORKSPACE
mkdir cmake-build && cd cmake-build
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DCMAKE_BUILD_TYPE=Release ..
- name: Build pfbneo
run: |
cd $GITHUB_WORKSPACE/cmake-build
make pfbneo.deps
make pfbneo_windows_release
mv *.zip $GITHUB_WORKSPACE
- name: Build pgen
run: |
cd $GITHUB_WORKSPACE/cmake-build
make pgen_windows_release
mv *.zip $GITHUB_WORKSPACE
- name: Build pnes
run: |
cd $GITHUB_WORKSPACE/cmake-build
make pnes_windows_release
mv *.zip $GITHUB_WORKSPACE
- name: Build psnes
run: |
cd $GITHUB_WORKSPACE/cmake-build
make psnes_windows_release
mv *.zip $GITHUB_WORKSPACE
- name: Build pgba
run: |
cd $GITHUB_WORKSPACE/cmake-build
make pgba_windows_release
mv *.zip $GITHUB_WORKSPACE
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: '*.zip'
token: ${{ secrets.GITHUB_TOKEN }}