-
-
Notifications
You must be signed in to change notification settings - Fork 104
132 lines (115 loc) · 3.76 KB
/
msbuild.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: GitHub Actions Build
on:
push:
paths-ignore:
- "**/*.md"
- '**/*.txt'
branches:
- '**'
pull_request:
paths-ignore:
- "**/*.md"
- '**/*.txt'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
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: minor
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/Ultimate-ASI-Loader-x64.sln /property:Configuration=Release /property:Platform=x64
msbuild -m build/Ultimate-ASI-Loader-Win32.sln /property:Configuration=Release /property:Platform=Win32
- name: Pack binaries
run: |
./release.bat
./release.ps1
- name: Upload artifact (Win32)
uses: actions/upload-artifact@v4
with:
name: Ultimate-ASI-Loader-Win32
path: dist/Win32/dll/*
- name: Upload artifact (x64)
uses: actions/upload-artifact@v4
with:
name: Ultimate-ASI-Loader-x64
path: dist/x64/dll/*
- name: Upload Release (Main)
if: |
github.ref_name == 'master' &&
github.event_name == 'push' &&
github.repository == 'ThirteenAG/Ultimate-ASI-Loader'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: false
name: Ultimate ASI Loader v${{ steps.versioning.outputs.version }}
bodyFile: "release.md"
tag: v${{ steps.versioning.outputs.version }}
artifacts: bin/Ultimate-ASI-Loader.zip, bin/Ultimate-ASI-Loader_x64.zip
- name: Get release info (Win32)
if: |
github.ref_name == 'master' &&
github.event_name == 'push' &&
github.repository == 'ThirteenAG/Ultimate-ASI-Loader'
id: release_info_x86
uses: cardinalby/git-get-release-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: Win32-latest
- name: Upload Release (Win32)
if: |
github.ref_name == 'master' &&
github.event_name == 'push' &&
github.repository == 'ThirteenAG/Ultimate-ASI-Loader'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
name: ${{ steps.release_info_x86.outputs.name }}
body: ${{ steps.release_info_x86.outputs.body }}
tag: ${{ steps.release_info_x86.outputs.tag_name }}
artifacts: dist/Win32/zip/*.zip
- name: Get release info (Win64)
if: |
github.ref_name == 'master' &&
github.event_name == 'push' &&
github.repository == 'ThirteenAG/Ultimate-ASI-Loader'
id: release_info_x64
uses: cardinalby/git-get-release-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: x64-latest
- name: Upload Release (Win64)
if: |
github.ref_name == 'master' &&
github.event_name == 'push' &&
github.repository == 'ThirteenAG/Ultimate-ASI-Loader'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
name: ${{ steps.release_info_x64.outputs.name }}
body: ${{ steps.release_info_x64.outputs.body }}
tag: ${{ steps.release_info_x64.outputs.tag_name }}
artifacts: dist/x64/zip/*.zip