Skip to content

Commit 9165cf3

Browse files
committed
separate release tag and debug check workflows
1 parent 3c23880 commit 9165cf3

2 files changed

Lines changed: 51 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Build CI
1+
name: Release Build
22

33
on:
44
push:
5-
branches: [ "main", "master" ]
6-
pull_request:
7-
branches: [ "main", "master" ]
5+
tags:
6+
- 'v*'
87
workflow_dispatch:
98

109
env:
@@ -38,11 +37,8 @@ jobs:
3837
- name: Show sccache stats
3938
run: sccache --show-stats
4039

41-
- name: Rename DLL to winhttp.dll
42-
run: Rename-Item -Path "build\bin\UnityInspector.dll" -NewName "winhttp.dll"
43-
4440
- name: Upload Artifact
4541
uses: actions/upload-artifact@v4
4642
with:
4743
name: winhttp-dll
48-
path: build\bin\winhttp.dll
44+
path: dist/winhttp.dll

.github/workflows/debug-check.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Debug Check
2+
3+
on:
4+
push:
5+
branches: [ "main", "master" ]
6+
pull_request:
7+
branches: [ "main", "master" ]
8+
workflow_dispatch:
9+
10+
env:
11+
SCCACHE_GHA_ENABLED: "true"
12+
SCCACHE_CACHE_SIZE: 2G
13+
14+
jobs:
15+
build:
16+
runs-on: windows-latest
17+
permissions:
18+
contents: read
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup MSVC
25+
uses: ilammy/msvc-dev-cmd@v1
26+
with:
27+
arch: x64
28+
29+
- name: Setup sccache
30+
uses: mozilla-actions/sccache-action@v0.0.10
31+
32+
- name: Configure CMake
33+
run: cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
34+
35+
- name: Build project
36+
run: cmake --build build
37+
38+
- name: Show sccache stats
39+
run: sccache --show-stats
40+
41+
- name: Upload Artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: winhttp-dll-debug
45+
path: |
46+
dist/winhttp.dll
47+
dist/winhttp.pdb

0 commit comments

Comments
 (0)