generated from Pixfri/TemplateCppProject
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.28 KB
/
windows_latest.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
name: Windows Build
on:
push:
pull_request:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
jobs:
build:
runs-on: windows-latest
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- uses: actions/checkout@v4
name: Checkout
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
name: Install xmake
- name: Build debug
run: |
xmake f -m debug -y -v
xmake -v
- name: Build release
run: |
xmake f -m release -y
xmake
- name: Prepare artifacts
run: |
mkdir debug-artifact
move bin/windows_x64_debug/FlashlightEngine.exe debug-artifact/
move bin/windows_x64_debug/FlashlightEngine.pdb debug-artifact/
mkdir release-artifact
move bin/windows_x64_release/FlashlightEngine.exe release-artifact/
- uses: actions/upload-artifact@v4
with:
name: FlashlightEngine-windows-debug-${{ github.run_id }}
path: debug-artifact/
name: Upload debug artifact
- uses: actions/upload-artifact@v4
with:
name: FlashlightEngine-windows-release-${{ github.run_id }}
path: release-artifact/
name: Upload release artifact