forked from Starfield-Reverse-Engineering/CommonLibSF
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.45 KB
/
update_pdb.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
50
name: Update PDB
on:
workflow_run:
workflows: Maintenance
types: completed
workflow_dispatch:
concurrency:
group: pdb
cancel-in-progress: true
env:
VCPKG_COMMIT_ID: 5a38b5ec0eee3d1a1a6faab5e944617fee2697cf
GITHUB_WORKSPACE: ${{ github.workspace }}
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11.1
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}
- name: Run CMake
uses: lukka/run-cmake@v10.6
with:
cmakeListsTxtPath: "${{ github.workspace }}/CommonLibSF/CMakeLists.txt"
configurePreset: build-debug-msvc-ninja
configurePresetCmdString: "[`-B`, `$[env.GITHUB_WORKSPACE]/build`, `-S`, `$[env.GITHUB_WORKSPACE]/CommonLibSF`, `--preset`, `$[env.CONFIGURE_PRESET_NAME]`]"
buildPreset: debug-msvc-ninja
buildPresetCmdString: "[`--build`, `$[env.GITHUB_WORKSPACE]/build`, `--preset`, `$[env.BUILD_PRESET_NAME]`]"
- name: Find PDB
run: |
$pdb = Get-ChildItem -Path "${{ github.workspace }}" -Filter "CommonLibSF.pdb" -Recurse -ErrorAction SilentlyContinue -Force
"PDB_PATH=$pdb" >> $env:GITHUB_ENV
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: CommonLibSF.pdb
path: ${{ env.PDB_PATH }}