Skip to content

Commit b5d5db6

Browse files
authored
Update cmake-multi-platform.yml
1 parent 792ca36 commit b5d5db6

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,12 @@ on:
1111
jobs:
1212
build:
1313
runs-on: windows-latest
14-
1514
strategy:
16-
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
1715
fail-fast: false
18-
19-
# Set up a matrix to run the following 3 configurations:
20-
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
21-
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
22-
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
23-
#
24-
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
25-
matrix:
26-
os: [windows-latest]
27-
build_type: [Release]
28-
c_compiler: [cl]
29-
include:
30-
- os: windows-latest
31-
c_compiler: cl
32-
cpp_compiler: cl
33-
16+
3417
steps:
3518
- uses: actions/checkout@v4
19+
- uses: ilammy/msvc-dev-cmd@v1
3620
with:
3721
submodules: recursive
3822

@@ -41,7 +25,7 @@ jobs:
4125
id: strings
4226
shell: bash
4327
run: |
44-
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
28+
echo "build-output-dir=${{ github.workspace }}/out" >> "$GITHUB_OUTPUT"
4529
4630
- name: Configure CMake
4731
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
@@ -54,7 +38,7 @@ jobs:
5438
5539
- name: Build
5640
# 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).
57-
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
41+
run: cmake --build ${{ github.workspace }}/out/build/x64-release
5842

5943
- name: Test
6044
working-directory: ${{ steps.strings.outputs.build-output-dir }}

0 commit comments

Comments
 (0)