Skip to content

Commit

Permalink
build: upload windows debug artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Aug 16, 2024
1 parent 62ee737 commit 751fcc9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
fetch-depth: '0'
ref: ${{ github.ref }}

- name: Prepare Job Environment
run: |
"do_install=${{ (matrix.build_mode == 'Release' && matrix.config.name == 'Benchmark') || (matrix.build_mode == 'Debug' && matrix.config.name == 'Normal') }}" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Set MSVC Dev Environment
uses: ilammy/msvc-dev-cmd@v1

Expand All @@ -62,24 +66,24 @@ jobs:
shell: cmd
run: |
cmake --build ${{ runner.temp }}\build --target package
if: matrix.build_mode == 'Release' && matrix.config.name == 'Benchmark'
if: env.do_install == 'true'

- name: Compress Universal Binary
shell: cmd
run: |
cmake --build ${{ runner.temp }}\build --target universal_upx
if: matrix.build_mode == 'Release' && matrix.config.name == 'Benchmark'
if: env.do_install == 'true'

- name: Copy Artifacts
shell: cmd
run: |
cmake --build ${{ runner.temp }}\build --target copy_artifacts
if: matrix.build_mode == 'Release' && matrix.config.name == 'Benchmark'
if: env.do_install == 'true'

- name: Prepare Artifact Upload
shell: cmd
run: cat ${{ runner.temp }}\build\artifacts.env >> %GITHUB_ENV%
if: matrix.build_mode == 'Release' && matrix.config.name == 'Benchmark'
if: env.do_install == 'true'

- name: Upload Binary Tarball
uses: actions/upload-artifact@v4
Expand All @@ -88,7 +92,7 @@ jobs:
path: ${{ runner.temp }}\build\${{ env.binary_tarball }}
if-no-files-found: error
compression-level: 0
if: matrix.build_mode == 'Release' && matrix.config.name == 'Benchmark'
if: env.do_install == 'true'

- name: Upload Universal Binary
uses: actions/upload-artifact@v4
Expand All @@ -97,7 +101,7 @@ jobs:
path: ${{ runner.temp }}\build\${{ env.universal_binary }}
if-no-files-found: error
compression-level: 0
if: matrix.build_mode == 'Release' && matrix.config.name == 'Benchmark'
if: env.do_install == 'true'

package-source:
runs-on:
Expand Down

0 comments on commit 751fcc9

Please sign in to comment.