Fix integration - Take II #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##====================================================================================================================== | |
## SPY - Compact C++20 Tuple Toolbox | |
## Copyright : SPY Project Contributors | |
## SPDX-License-Identifier: BSL-1.0 | |
##====================================================================================================================== | |
name: SPY Integration Tests | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: spy-integration-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
install: | |
runs-on: [ubuntu-latest] | |
container: | |
image: ghcr.io/jfalcou/compilers:v8 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Fetch current branch | |
uses: actions/[email protected] | |
- name: Install SPY from checkout | |
run: | | |
mkdir build && cd build | |
cmake -G Ninja .. -DSPY_BUILD_TEST=OFF -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-std=c++20" | |
ninja install | |
- name: Run Sample CMake | |
run: | | |
mkdir install && cd install | |
cmake ../test/integration/install-test -G Ninja -DCMAKE_CXX_FLAGS="-std=c++20" | |
ninja && ctest --verbose | |
fetch-content: | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
runs-on: [ubuntu-latest] | |
container: | |
image: ghcr.io/jfalcou/compilers:v8 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Fetch current branch | |
uses: actions/[email protected] | |
- name: Compile using FetchContent | |
run: | | |
git config --global --add safe.directory /__w/kumi/kumi | |
mkdir install && cd install | |
cmake ../test/integration/fetch-test -G Ninja -DGIT_BRANCH=${BRANCH_NAME} -DSPY_BUILD_TEST=OFF -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-std=c++20" | |
ninja && ctest --verbose | |
cpm: | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
runs-on: [ubuntu-latest] | |
container: | |
image: ghcr.io/jfalcou/compilers:v8 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Fetch current branch | |
uses: actions/[email protected] | |
- name: Compile using CPM | |
run: | | |
git config --global --add safe.directory /__w/kumi/kumi | |
mkdir install && cd install | |
cmake ../test/integration/cpm-test -G Ninja -DGIT_BRANCH=${BRANCH_NAME} -DCMAKE_CXX_FLAGS="-std=c++20" -DCMAKE_CXX_COMPILER=clang++ -DSPY_BUILD_TEST=OFF | |
ninja && ctest --verbose |