-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Runs after `maintenance.yml` - Builds the library with the `debug-msvc-ninja` preset - Uploads pdb as an artifact
- Loading branch information
1 parent
f7aa616
commit 2a67c67
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Update PDB | ||
|
||
on: | ||
workflow_run: | ||
workflows: Maintenance | ||
types: completed | ||
workflow_dispatch: | ||
|
||
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/[email protected] | ||
with: | ||
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }} | ||
|
||
- name: Run CMake | ||
uses: lukka/[email protected] | ||
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 }} |