Skip to content

Commit

Permalink
GitHub workflows (Windows): add Debug steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Wend4r committed Sep 3, 2024
1 parent 8a95daf commit e4a5c2c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ on:
- 'trigger-build.txt'

env:
CMAKE_DEBUG_PRESET_NAME: Windows/Debug
CMAKE_DEBUG_PRESET_PUBLIC_NAME: Debug
CMAKE_DEBUG_CONFIG_NAME: Debug
CMAKE_DEBUG_OUTPUT_PATTERN: build/Windows/Debug/Debug/*
CMAKE_RELEASE_PRESET_NAME: Windows/Release
CMAKE_RELEASE_PRESET_PUBLIC_NAME: Release
CMAKE_RELEASE_CONFIG_NAME: Release
Expand Down Expand Up @@ -79,6 +83,21 @@ jobs:
}
shell: pwsh

- name: Debug - Configure CMake
run: >
cmake --preset ${{ env.CMAKE_DEBUG_PRESET_NAME }}
-DCMAKE_C_COMPILER=${{ env.CMAKE_CC }}
-DCMAKE_CXX_COMPILER=${{ env.CMAKE_CXX }}
- name: Debug - Build
run: cmake --build --preset ${{ env.CMAKE_DEBUG_PRESET_NAME }} --parallel --config ${{ env.CMAKE_DEBUG_CONFIG_NAME }}

- name: Debug - Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.REPOSITORY_NAME }}-${{ env.LATEST_TAG }}-${{ runner.os }}_${{ env.CMAKE_DEBUG_PRESET_PUBLIC_NAME }}
path: ${{ env.CMAKE_DEBUG_OUTPUT_PATTERN }}

- name: Release - Configure CMake
run: >
cmake --preset ${{ env.CMAKE_RELEASE_PRESET_NAME }}
Expand Down

0 comments on commit e4a5c2c

Please sign in to comment.