-
Notifications
You must be signed in to change notification settings - Fork 61
52 lines (44 loc) · 1.35 KB
/
build.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
name: CMake
on:
push:
branches: [ master ]
paths: [ ".github/workflows/build.yml", CMakeLists.txt, 'src/**', 'd2mapapi/**', 'tools/**', 'inih/**' ]
pull_request:
branches: [ master ]
paths: [ ".github/workflows/build.yml", CMakeLists.txt, 'src/**', 'd2mapapi/**', 'tools/**', 'inih/**' ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
compiler: ["msys2_mingw", "msvc2022"]
steps:
- name: Install MSYS2/MinGW
if: matrix.compiler == 'msys2_mingw'
uses: msys2/setup-msys2@v2
with:
location: D:\
update: true
install: >-
mingw-w64-x86_64-binutils
mingw-w64-i686-binutils
mingw-w64-x86_64-gcc
mingw-w64-i686-gcc
mingw-w64-x86_64-make
mingw-w64-i686-make
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: CMake Configure and Build
shell: cmd
working-directory: ${{github.workspace}}
run: build_${{matrix.compiler}}.bat D:\msys64
- uses: actions/upload-artifact@v2
with:
name: D2RMH-snapshot-${{matrix.compiler}}
path: |
${{github.workspace}}/build/${{matrix.compiler}}/dist/D2RMH-snapshot.zip
retention-days: 7