From 964ed73a6bba9babf8dee033932864ec5c78b2cd Mon Sep 17 00:00:00 2001 From: Georg Thiesen Date: Mon, 11 Mar 2024 01:47:04 +0100 Subject: [PATCH] Update cmake-multi-platform-make-release.yml --- .../cmake-multi-platform-make-release.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake-multi-platform-make-release.yml b/.github/workflows/cmake-multi-platform-make-release.yml index 27c47c9..49ca292 100644 --- a/.github/workflows/cmake-multi-platform-make-release.yml +++ b/.github/workflows/cmake-multi-platform-make-release.yml @@ -50,8 +50,13 @@ jobs: run: | echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - - name: Create Build Output Directory + - name: Create Linux Build Output Directory + if: matrix.ox == 'Linux' run: mkdir ./${{ runner.os }}_build + + - name: Create Windows Build Output Directory + if: matrix.ox == 'Windows' + run: mkdir .\${{ runner.os }}_build - name: Install development libraries (Ubuntu/Debian) if: matrix.os == 'ubuntu-latest' @@ -84,7 +89,7 @@ jobs: -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - -DCMAKE_INSTALL_PREFIX=./${{ runner.os }}_build + -DCMAKE_INSTALL_PREFIX=.\${{ runner.os }}_build -S ${{ github.workspace }} - name: Build (Linux) @@ -98,6 +103,13 @@ jobs: run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target install - uses: actions/upload-artifact@v3 # Upload build artifacts + if: runner.os == 'Windows' + with: + name: ${{ runner.os }}_build # Name for the artifact cache + path: .\${{ runner.os }}_build # Path containing built artifacts + + - uses: actions/upload-artifact@v3 # Upload build artifacts + if: runner.os == 'Linux' with: name: ${{ runner.os }}_build # Name for the artifact cache path: ./${{ runner.os }}_build # Path containing built artifacts