Skip to content

Commit

Permalink
ci: Standardize MSVC build process
Browse files Browse the repository at this point in the history
  Both the nightly release and manual-release builds use
  `msbuild`, while the CI job for PRs use `cmake`. This
  leads to a weird situation where both the release builds
  run without issue, but the CI job fails.

Signed-off-by: David Li <[email protected]>
  • Loading branch information
randombk committed Jan 10, 2025
1 parent bcca74f commit f13f1eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cataclysm Windows build (CMake + MSVC)
name: Cataclysm Windows build (MSVC)

on:
push:
Expand Down Expand Up @@ -34,7 +34,7 @@ on:

# We only care about the latest revision, so cancel previous instances.
concurrency:
group: msvc-cmake-build-${{ github.ref_name }}
group: msvc-build-${{ github.ref_name }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -84,15 +84,10 @@ jobs:
run: |
vcpkg integrate install
- uses: ammaraskar/msvc-problem-matcher@master
- name: Configure
run: |
cmake -DTESTS=ON --preset $env:CMAKE_PRESET
- uses: ammaraskar/msvc-problem-matcher@master
- name: Build
run: |
cmake --build out/build/$env:CMAKE_PRESET --config RelWithDebInfo
msbuild -m -p:Configuration=Release -p:Platform=x64 "-target:Cataclysm-vcpkg-static;JsonFormatter-vcpkg-static;Cataclysm-test-vcpkg-static" msvc-full-features\Cataclysm-vcpkg-static.sln
- name: Dump logs if build failed
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ jobs:
uses: lukka/get-cmake@latest

- name: Install vcpkg
uses: lukka/run-vcpkg@v11
uses: lukka/run-vcpkg@main
id: runvcpkg
with:
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg'
Expand Down

0 comments on commit f13f1eb

Please sign in to comment.