-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.11 KB
/
windows-x86_64.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
name: Build Windows x64
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
with:
vs-prerelease: true
msbuild-architecture: x64
- name: Install Python
run: |
choco install python312 --params "/InstallDir:C:\Python312"
- name: Install CMake
run: |
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
- name: Configure CMake
env:
TWITCH_CLIENT_SECRET: ${{ secrets.TwitchClientSecret }}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
env:
TWITCH_CLIENT_SECRET: ${{ secrets.TwitchClientSecret }}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --verbose
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ChatNotifier
path: ${{github.workspace}}/build/bin/