-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.15 KB
/
build.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
name: Build artifact on commit
on:
pull_request:
push:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Create environment variables
run: |
$commitSha = (git rev-parse --short $env:GITHUB_SHA)
echo "NGPLUS_COMMIT_SHA=${commitSha}" | Out-File -FilePath $env:GITHUB_ENV -Encoding UTF8 -Append
- name: Setup XMake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Update XMake repo
run: xmake.exe repo --update
- name: Configure XMake and install dependencies
run: xmake.exe config --yes
- name: Build and bundle with XMake
run: xmake.exe package
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: newgameplus_${{ env.NGPLUS_COMMIT_SHA }}
path: packaging/
if-no-files-found: error
- name: Upload PDB
uses: actions/upload-artifact@v4
with:
name: newgameplus_pdb_${{ env.NGPLUS_COMMIT_SHA }}
path: packaging_pdb/
if-no-files-found: error