Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
feat: update CI to replace path
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankaima committed Oct 20, 2023
1 parent df83a27 commit 2e001e6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,19 @@ jobs:
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
- name: Create Visual Studio 2022 on Windows machine
if: runner.os == 'Windows'
run: cmake -G "Visual Studio 17 2022"
run: |
cmake -G "Visual Studio 17 2022" -A x64
- name: Replace absolute path with relative path
if: runner.os == 'Windows'
uses: jacobtomlinson/gha-find-replace@v3
with:
find: ${{ github.workspace }}
replace: "$(SolutionDir)"
regex: false

- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
Expand Down

0 comments on commit 2e001e6

Please sign in to comment.