further compile time reductrion #3374
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
# SPDX-FileCopyrightText: 2022 The Ikarus Developers [email protected] | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Debian | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '.github/workflows/ghpages.yml' | |
- '.github/workflows/createDockerContainer.yml' | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- '.github/workflows/ghpages.yml' | |
- '.github/workflows/createDockerContainer.yml' | |
- '**.md' | |
jobs: | |
Build: | |
name: ${{ matrix.config.name }} | |
runs-on: ubuntu-latest | |
container: | |
image: ikarusproject/ikarus-dev:latest | |
options: --memory-swap="20g" --memory="20g" --cpus="2" --user root | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
# - { | |
# name: "Clang-Debug", | |
# config: Debug, | |
# compilerC: clang-12, | |
# compilerCxx: clang++-12, | |
# lib: "-stdlib=libc++", | |
# } | |
# - { | |
# name: "Clang-Release", | |
# config: Release, | |
# compilerC: clang-12, | |
# compilerCxx: clang++-12, | |
# lib: "-stdlib=libc++", | |
# } | |
- { | |
name: "GCC-Debug", | |
config: Debug, | |
compilerC: gcc-12, | |
compilerCxx: g++-12, | |
lib: "", | |
testRegex: "cpp" | |
} | |
- { | |
name: "GCC-Release", | |
config: Release, | |
compilerC: gcc-12, | |
compilerCxx: g++-12, | |
lib: "", | |
testRegex: "cpp" | |
} | |
- { | |
name: "GCC-Release-Python", | |
config: Release, | |
compilerC: gcc-12, | |
compilerCxx: g++-12, | |
lib: "", | |
testRegex: "python" | |
} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: 'repo' | |
- name: Build | |
working-directory: ./repo | |
run: | | |
mkdir cmake-build-${{ matrix.config.config }} | |
cd cmake-build-${{ matrix.config.config }} | |
cmake ../ -DCMAKE_BUILD_TYPE=${{ matrix.config.config }} -G "Unix Makefiles" -DCMAKE_C_COMPILER=${{ matrix.config.compilerC }} -DCMAKE_CXX_COMPILER=${{ matrix.config.compilerCxx }} | |
cmake --build . --parallel 2 --target ikarus | |
cmake --build . --parallel 2 --target _ikarus | |
cmake --build . --parallel 2 --target build_${{ matrix.config.testRegex }}_tests | |
- name: Tests | |
working-directory: ./repo/cmake-build-${{ matrix.config.config }} | |
run: ctest --output-on-failure --parallel 2 -L ${{ matrix.config.testRegex }} |