-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (33 loc) · 1.09 KB
/
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
42
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
run: | # Trying to set env variables for a simple command is like ???, now I truly understand the "Windows Sucks" mentality.
rem The space after the version is intentionally ommited, otherwise the env var contains a space. *sigh*
cmd /C "set UNCIV_VERSION=4.12.14&& wix build .\unciv.wxs"
dir
- name: Add generated binaries to artifact
uses: actions/upload-artifact@v4
with:
name: Unciv-MSI
path: |
Unciv.msi
if-no-files-found: error