Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zourenDevote committed Aug 15, 2023
1 parent 4bc1b89 commit 54ae106
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on multiple platforms

on:
Expand All @@ -10,9 +8,12 @@ on:

jobs:
build-linux-debug:


runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up LLVM on Linux
if: runner.os == 'Linux'
Expand All @@ -24,18 +25,20 @@ jobs:
- name: Configure and build with CMake (Linux)
run: |
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_CTEST=On
make -j 'nproc'
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug -DENABLE_CTEST=On
cmake --build ${{github.workspace}}/build -j 'nproc'
- name: Test
working-directory: ${{github.workspace}}/build
run: |
ctest -j 'nproc' --stop-on-failure
build-linux-release:
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v3

- name: Set up LLVM on Linux
if: runner.os == 'Linux'
run: |
Expand All @@ -46,12 +49,14 @@ jobs:
- name: Configure and build with CMake (Linux)
run: |
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CTEST=On
make -j 'nproc'
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DENABLE_CTEST=On
cmake --build ${{github.workspace}}/build -j 'nproc'
- name: Test
working-directory: ${{github.workspace}}/build
run: |
ctest -j 'nproc' --stop-on-failure


Expand Down

0 comments on commit 54ae106

Please sign in to comment.