-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (32 loc) · 872 Bytes
/
CI.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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Unzip unciv file
run: |
tar -xf files\Unciv-Windows64.zip -C files
del files\Unciv-Windows64.zip
dir files
- name: Install WiX
run: dotnet tool install --global wix
- name: Build WiX on Windows
shell: bash
run: |
UNCIV_VERSION=4.12.14 wix build unciv.wxs
- name: Add generated binaries to artifact
uses: actions/upload-artifact@v4
with:
name: Unciv-MSI
path: |
Unciv.msi
if-no-files-found: error