From 2e001e6491cd04f7c417f1e5d94c0aa71c2692e3 Mon Sep 17 00:00:00 2001 From: tiankaima Date: Fri, 20 Oct 2023 16:29:58 +0800 Subject: [PATCH] feat: update CI to replace path --- .github/workflows/cmake-multi-platform.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index b330661..d2788c6 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -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).