Clean sync.cpp #3
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
name: CI | |
on: | |
push: | |
branches: [ master-basic ] | |
pull_request: | |
branches: [ master-basic ] | |
defaults: | |
run: | |
# use interactive shell, i.e. it should source .bashrc | |
shell: bash -ieo pipefail {0} | |
jobs: | |
ubuntu-compile-script: | |
strategy: | |
matrix: | |
compiler: ["gcc", "clang++"] | |
generator: ["make", "ninja"] | |
fail-fast: false | |
name: "Ubuntu compile.sh :: ${{ matrix.compiler }} :: ${{ matrix.generator }}" | |
runs-on: ubuntu-latest | |
steps: | |
- run: sudo apt-get update -yy && sudo apt-get install -yy ninja-build | |
- uses: actions/checkout@v3 | |
- run: ./compile.sh -f -c ${{ matrix.compiler }} -g ${{ matrix.generator }} | |
- run: ./src/build/tests -as | |
- run: ./ci/test.sh polaris projects | |
ubuntu-cmake: | |
strategy: | |
matrix: | |
include: | |
- compiler: gcc | |
defines: "CC=gcc CXX=g++" | |
build_type: "Release" | |
- compiler: clang | |
defines: "CC=clang CXX=clang++" | |
build_type: "Release" | |
- compiler: clang | |
defines: "CC=clang CXX=clang++" | |
build_type: "Debug" | |
exe_linker_flags: "-fsanitize=address" | |
cxx_flags: "-fsanitize=address" | |
fail-fast: false | |
name: "Ubuntu :: ${{ matrix.compiler }} :: ${{ matrix.build_type }} :: ${{ matrix.cxx_flags }} :: system ccfits cfitsio" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sudo apt-get update -yy && sudo apt-get install -yy ninja-build libccfits-dev libcfitsio-dev | |
- run: | | |
mkdir build | |
cd build | |
${{ matrix.defines }} cmake ../src -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_EXE_LINKER_FLAGS=${{ matrix.exe_linker_flags }} -DCMAKE_CXX_FLAGS=${{ matrix.cxx_flags }} | |
ninja | |
ninja test | |
- run: ./ci/test.sh ./build/polaris projects | |
macos-cmake-llvm: | |
name: "MacOS :: llvm :: system ccfits cfitsio" | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: brew install llvm libomp ninja ccfits cfitsio | |
- run: | | |
mkdir build | |
cd build | |
CC="$(brew --prefix llvm)/bin/clang" CXX="$(brew --prefix llvm)/bin/clang++" cmake ../src -DCMAKE_BUILD_TYPE=Release -GNinja | |
ninja | |
ninja test | |
- run: ./ci/test.sh ./build/polaris projects |