-
-
Notifications
You must be signed in to change notification settings - Fork 46
118 lines (102 loc) · 3.22 KB
/
msvc_x86.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: GitHub Actions Build
on:
push:
paths-ignore:
- "**/*.md"
- '**/*.txt'
branches:
- '**'
pull_request:
paths-ignore:
- "**/*.md"
- '**/*.txt'
workflow_dispatch:
inputs:
release:
description: "Create a release"
type: choice
required: false
default: 'false'
options:
- 'true'
- 'false'
version_increment:
description: "Default semantic version release type"
type: choice
required: false
default: 'minor'
options:
- 'major'
- 'minor'
- 'patch'
env:
VERINC: ${{ github.event.inputs.version_increment || 'patch' }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@main
- name: Auto Increment Version
uses: MCKanpolat/auto-semver-action@v2
id: versioning
with:
releaseType: ${{ env.VERINC }}
incrementPerCommit: false
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure build
run: ./premake5 vs2022 --with-version=${{ steps.versioning.outputs.version }}
- name: Build
run: |
msbuild -m build/GTAIV.EFLC.FusionFix.sln /property:Configuration=Release /property:Platform=Win32
- name: Download Ultimate ASI Loader x86
uses: robinraju/release-downloader@v1.8
with:
repository: "ThirteenAG/Ultimate-ASI-Loader"
tag: "Win32-latest"
fileName: "dinput8-Win32.zip"
- name: Unpack dependencies
run: |
7z x dinput8-Win32.zip -odata/ -y
del dinput8-Win32.zip
del data\dinput8-Win32.SHA512
- name: Pack binaries
run: |
./release.bat
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: GTAIV.EFLC.FusionFix
path: |
data/*
!data/update/GTAIV.EFLC.FusionFix/GTAIV.EFLC.FusionFix
!data/update/GTAIV.EFLC.FusionFix/GTAIV.FusionFix
!data/update/GTAIV.EFLC.FusionFix/TLAD.FusionFix
!data/update/GTAIV.EFLC.FusionFix/TBOGT.FusionFix
!data/update/GTAIV.EFLC.FusionFix/FusionTrees
!data/update/GTAIV.EFLC.FusionFix/FusionLights
!data/update/GTAIV.EFLC.FusionFix/cdimagemake.ims
!**/.gitkeep
- name: Upload Release
if: |
github.event.inputs.release == 'true' &&
github.ref_name == 'master' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.repository == 'ThirteenAG/GTAIV.EFLC.FusionFix'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: false
name: GTAIV.EFLC.FusionFix v${{ steps.versioning.outputs.version }}
body: "[README](https://github.com/ThirteenAG/GTAIV.EFLC.FusionFix#readme)"
tag: v${{ steps.versioning.outputs.version }}
artifacts: GTAIV.EFLC.FusionFix.zip