-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.62 KB
/
Copy pathrelease.yaml
File metadata and controls
65 lines (53 loc) · 1.62 KB
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
# Windows only. Native MSVC Release builds on windows-latest (x64 and Win32 targets).
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
name: ${{ matrix.artifact_name }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- configure_preset: default
build_preset: release
artifact_name: RawInputViewer-x64.exe
exe_path: build/msvc-x64/Release/RawInputViewer.exe
- configure_preset: msvc-x86
build_preset: x86-release
artifact_name: RawInputViewer-x86.exe
exe_path: build/msvc-x86/Release/RawInputViewer.exe
steps:
- uses: actions/checkout@v5
- name: Configure
run: cmake --preset ${{ matrix.configure_preset }}
- name: Build
run: cmake --build --preset ${{ matrix.build_preset }}
- name: Stage binary
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path staging | Out-Null
Copy-Item -Path "${{ matrix.exe_path }}" -Destination "staging/${{ matrix.artifact_name }}"
- uses: actions/upload-artifact@v5
with:
name: ${{ matrix.artifact_name }}
path: staging/${{ matrix.artifact_name }}
if-no-files-found: error
publish:
name: GitHub Release
needs: build
runs-on: windows-latest
steps:
- uses: actions/download-artifact@v5
with:
path: dist
merge-multiple: true
- uses: softprops/action-gh-release@v3
with:
files: dist/**
generate_release_notes: true