Skip to content

Commit

Permalink
Suppress vcpkg export errors
Browse files Browse the repository at this point in the history
If we export then separate PDBs, vcpkg won't yell at us that the already-separated PDBs are gone.
  • Loading branch information
AnyOldName3 committed May 30, 2024
1 parent db52b0b commit 05b4ccc
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,24 @@ jobs:
openmw-osg
sdl2
- name: Export installed vcpkg packages
run: >
vcpkg export
--x-all-installed
--raw
--output-dir ${{ github.workspace }}
--output intermediate
- name: Move pdb files
working-directory: 'C:/vcpkg'
working-directory: '${{ github.workspace }}/intermediate'
run: |
robocopy installed pdb/installed *.pdb /S /MOVE
if ($lastexitcode -lt 8) {
$global:LASTEXITCODE = $null
}
- name: Archive pdb files
working-directory: 'C:/vcpkg/pdb'
working-directory: '${{ github.workspace }}/intermediate/pdb'
run: 7z a "${{ github.workspace }}/vcpkg-x64-${{ matrix.image }}-static-pdb-${{ github.sha }}.7z" installed

- name: Store archived pdb files
Expand All @@ -84,13 +92,9 @@ jobs:
name: vcpkg-x64-${{ matrix.image }}-static-pdb-${{ github.sha }}
path: ${{ github.workspace }}/vcpkg-x64-${{ matrix.image }}-static-pdb-${{ github.sha }}.7z

- name: Export installed vcpkg packages
run: >
vcpkg export
--x-all-installed
--7zip
--output-dir ${{ github.workspace }}
--output vcpkg-x64-${{ matrix.image }}-static-${{ github.sha }}
- name: Archive everything else
working-directory: '${{ github.workspace }}/intermediate'
run: 7z a "${{ github.workspace }}/vcpkg-x64-${{ matrix.image }}-static-${{ github.sha }}.7z" *

- name: Store exported vcpkg packages
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -150,16 +154,24 @@ jobs:
openmw-osg
sdl2
- name: Export installed vcpkg packages
run: >
vcpkg export
--x-all-installed
--raw
--output-dir ${{ github.workspace }}
--output intermediate
- name: Move pdb files
working-directory: 'C:/vcpkg'
working-directory: '${{ github.workspace }}/intermediate'
run: |
robocopy installed pdb/installed *.pdb /S /MOVE
if ($lastexitcode -lt 8) {
$global:LASTEXITCODE = $null
}
- name: Archive pdb files
working-directory: 'C:/vcpkg/pdb'
working-directory: '${{ github.workspace }}/intermediate/pdb'
run: 7z a "${{ github.workspace }}/vcpkg-x64-${{ matrix.image }}-pdb-${{ github.sha }}.7z" installed

- name: Store archived pdb files
Expand All @@ -168,13 +180,9 @@ jobs:
name: vcpkg-x64-${{ matrix.image }}-pdb-${{ github.sha }}
path: ${{ github.workspace }}/vcpkg-x64-${{ matrix.image }}-pdb-${{ github.sha }}.7z

- name: Export installed vcpkg packages
run: >
vcpkg export
--x-all-installed
--7zip
--output-dir ${{ github.workspace }}
--output vcpkg-x64-${{ matrix.image }}-${{ github.sha }}
- name: Archive everything else
working-directory: '${{ github.workspace }}/intermediate'
run: 7z a "${{ github.workspace }}/vcpkg-x64-${{ matrix.image }}-${{ github.sha }}.7z" *

- name: Store exported vcpkg packages
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 05b4ccc

Please sign in to comment.