Skip to content

Commit

Permalink
Update cmake-multi-platform-make-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipagaxi committed Mar 11, 2024
1 parent 6547b04 commit 964ed73
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/cmake-multi-platform-make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 964ed73

Please sign in to comment.