-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 761 Bytes
/
Copy pathbuild.yml
File metadata and controls
37 lines (29 loc) · 761 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 GPU-Switcher
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1.13.0
with:
arch: x64
- name: Configure CMake
run: cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release
- name: Upload artifact
uses: actions/upload-artifact@v4.6.2
with:
name: GPU-Switcher-x64
path: build/GPU-Switcher.exe
retention-days: 30