forked from chocolate-doom/chocolate-doom
-
Notifications
You must be signed in to change notification settings - Fork 132
86 lines (73 loc) · 1.82 KB
/
msys2.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
name: msys2
on:
push:
branches:
- "master"
tags:
- "*"
paths-ignore:
- "**.md"
pull_request:
branches:
- "master"
paths-ignore:
- "**.md"
- "**.yml"
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
fail-fast: false
matrix:
include:
- { sys: mingw64, env: x86_64 }
- { sys: mingw32, env: i686 }
steps:
- name: Install pandoc
shell: cmd
run: choco install pandoc
- name: Extract Version Number
shell: bash
run: echo "VERSION=${GITHUB_REF##*-}" >> $GITHUB_ENV
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{ matrix.sys }}
path-type: inherit
install: >-
autotools
zip
mingw-w64-${{matrix.env}}-gcc
mingw-w64-${{matrix.env}}-SDL2
mingw-w64-${{matrix.env}}-SDL2_mixer
mingw-w64-${{matrix.env}}-SDL2_net
mingw-w64-${{matrix.env}}-libpng
mingw-w64-${{matrix.env}}-libsamplerate
mingw-w64-${{matrix.env}}-fluidsynth
- uses: actions/checkout@v3
- name: Configure
run: |
./autogen.sh
- name: Build
run: make -j4
- name: Package
run: |
cd pkg/win32
make
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Win-${{ matrix.env }}
path: pkg/win32/*.zip
- name: Release
if: ${{ contains(github.ref, 'tags') }}
uses: ncipollo/release-action@v1
with:
name: Crispy Doom ${{ env.VERSION }}
bodyFile: CHANGELOG.md
allowUpdates: true
artifacts: pkg/win32/*.zip