Add .pdb file to ci workflow (#3069)

* feat(workflows/ci): upload .pdb file too
* feat(workflows/ci): cmake args, pdb seperate artifact
* refactor(workflows/autoblocker): remove trailing whitespace
This commit is contained in:
pierrelasse 2024-05-09 15:26:01 +02:00 committed by GitHub
parent d65f7f2745
commit 5065b449cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 5 deletions

View File

@ -15,7 +15,7 @@ jobs:
- name: Autolock PRs that got merged or closed - name: Autolock PRs that got merged or closed
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:
script: | script: |
github.rest.issues.lock({ github.rest.issues.lock({
issue_number: context.issue.number, issue_number: context.issue.number,
owner: context.repo.owner, owner: context.repo.owner,

View File

@ -28,10 +28,10 @@ jobs:
arch: amd64 arch: amd64
- name: Generate CMake project - name: Generate CMake project
run: cmake -D CMAKE_BUILD_TYPE=Release -S. -Bbuild -G Ninja run: cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -D OPTIMIZE=YES -S. -Bbuild -G Ninja
- name: Build 64bit release DLL - name: Build 64bit release DLL
run: cmake --build ./build --config Release --target YimMenu -- run: cmake --build ./build --config RelWithDebInfo --target YimMenu --
- name: Check if DLL got built - name: Check if DLL got built
run: if (-Not (Test-Path -path "build/YimMenu.dll")) {throw 1} run: if (-Not (Test-Path -path "build/YimMenu.dll")) {throw 1}
@ -39,11 +39,20 @@ jobs:
- name: Rename DLL to YimMenu-dev-{GITHUB_SHA}.dll - name: Rename DLL to YimMenu-dev-{GITHUB_SHA}.dll
run: | run: |
del YimMenu-dev-*.dll del YimMenu-dev-*.dll
del YimMenu-dev-*.pdb
ren YimMenu.dll YimMenu-dev-${{github.sha}}.dll ren YimMenu.dll YimMenu-dev-${{github.sha}}.dll
ren YimMenu.pdb YimMenu.pdb
working-directory: build/ working-directory: build/
- name: Upload Artifact - name: Upload Artifact (dll)
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: binary name: binary
path: build/YimMenu-dev-*.dll path: |
build/YimMenu-dev-*.dll
- name: Upload Artifact (pdb)
uses: actions/upload-artifact@v3
with:
name: pdb
path: |
build/YimMenu.pdb