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 authored Mar 11, 2024
1 parent 964ed73 commit ab3a36c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/cmake-multi-platform-make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ jobs:
- 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
run: mkdir ./project_build

- name: Install development libraries (Ubuntu/Debian)
if: matrix.os == 'ubuntu-latest'
Expand All @@ -77,7 +73,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=./project_build
-S ${{ github.workspace }}
- name: Configure CMake (on Windows)
Expand All @@ -89,7 +85,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 @@ -106,13 +102,13 @@ jobs:
if: runner.os == 'Windows'
with:
name: ${{ runner.os }}_build # Name for the artifact cache
path: .\${{ runner.os }}_build # Path containing built artifacts
path: ./project_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
path: ./project_build # Path containing built artifacts

# - name: Create Release # Create the release on GitHub
# id: create_release
Expand Down

0 comments on commit ab3a36c

Please sign in to comment.