Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
victimsnino authored Oct 27, 2022
1 parent fa04a7c commit 736bc4e
Showing 1 changed file with 9 additions and 33 deletions.
42 changes: 9 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,47 +247,23 @@ jobs:
use_rpp_as_package:
needs: [download_deps]


strategy:
matrix:
config:
- CC: gcc-10
CXX: g++-10
os: ubuntu-latest
- CC:
CXX:
os: windows-latest

timeout-minutes: 20
runs-on: ${{ matrix.config.os }}
name: Test RPP as package - ${{ matrix.config.os }}
runs-on: ubuntu-latest
name: Test RPP as package - ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Generate project
env:
CC: ${{ matrix.config.CC }}
CXX: ${{ matrix.config.CXX }}
run: cmake -B build

- name: Install (unix)
if: matrix.config.os != 'windows-latest'
env:
CC: ${{ matrix.config.CC }}
CXX: ${{ matrix.config.CXX }}
run: sudo cmake --build build --target install --parallel 2 --config Release

- name: Install (windows)
if: matrix.config.os == 'windows-latest'
run: cmake --build build --target install --parallel 2 --config Release

- name: Build sample
- name: Install project and build
env:
CC: ${{ matrix.config.CC }}
CXX: ${{ matrix.config.CXX }}
CC: gcc-10
CXX: g++-10
run: |
cmake -B build
sudo cmake --build build --target install --parallel 2 --config Release
cmake -B sample_build -S src/examples/package
cmake --build sample_build --parallel 2 --config Release

0 comments on commit 736bc4e

Please sign in to comment.