Skip to content

Commit 03148ff

Browse files
committed
implemented CI/CD
1 parent 7ab8e64 commit 03148ff

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/CI.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: windows-2022
9+
steps:
10+
- name: Sync
11+
uses: actions/checkout@v2
12+
with:
13+
submodules: 'recursive'
14+
15+
- name: Configure
16+
shell: pwsh
17+
run: ${{env.GITHUB_WORKSPACE}}/build_scripts/configure.ps1
18+
19+
- name: Build Debug
20+
shell: pwsh
21+
run: ${{env.GITHUB_WORKSPACE}}/build_scripts/build.ps1 Debug
22+
23+
- name: Build Release
24+
shell: pwsh
25+
run: ${{env.GITHUB_WORKSPACE}}/build_scripts/build.ps1 Release
26+
27+
- name: Archive Debug artifacts
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: D3d12infoGUI - Release
31+
path: ${{env.GITHUB_WORKSPACE}}/build/bin/Debug/GUI.exe
32+
33+
- name: Archive Release artifacts
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: D3d12infoGUI - Release
37+
path: ${{env.GITHUB_WORKSPACE}}/build/bin/Release/GUI.exe

build_scripts/build.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
param (
2+
[string]$Configuration = "Release"
3+
)
4+
15
Push-Location $PSScriptRoot
26
& "./configure.ps1"
3-
cmake --build ../build/ -j --config Release
7+
cmake --build ../build/ -j --config $Configuration
48
Pop-Location

0 commit comments

Comments
 (0)