-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 888 Bytes
/
Copy pathbuild.yml
File metadata and controls
37 lines (30 loc) · 888 Bytes
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
name: Build
on:
push:
branches: ['**']
tags: ['v*']
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: cmake -B build -A Win32 # Win32 is mandatory — WoW.exe is x86
- name: Build
run: cmake --build build --config Release
- name: Upload artifact
if: "!startsWith(github.ref, 'refs/tags/v')"
uses: actions/upload-artifact@v4
with:
name: AuctionQueryThrottle-${{ github.sha }}
path: build/Release/AuctionQueryThrottle.dll
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: build/Release/AuctionQueryThrottle.dll
generate_release_notes: true