Skip to content

Commit

Permalink
[#53] : Enable MacOS X tests
Browse files Browse the repository at this point in the history
We now test AppleClang 14 on Mac OS X 12.
Due to iains/gcc-12-branch#6 (comment) , we test
g++-11 on Mac OS X 11 till the XCode CLT issue is fixed github's side
  • Loading branch information
jfalcou authored Nov 17, 2022
1 parent 381c8fb commit f3cf88e
Showing 1 changed file with 56 additions and 14 deletions.
70 changes: 56 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,49 +20,91 @@ jobs:
- {test: CPM , mode: 2 }
steps:
- name: Fetch current branch
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Check KIWAKU works with ${{ matrix.cfg.test }}
uses: ./.github/actions/integration
with:
branch: '${{ github.head_ref }}'
mode: '${{ matrix.cfg.mode }}'

debug:
gcc-linux:
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
cfg:
- { compiler: clang++, opts: "-stdlib=libc++ -O0" , linker: -stdlib=libc++ }
- { compiler: clang++, opts: -O0 , linker: }
- { compiler: g++-12 , opts: -O0 , linker: }
- { opts: -O0 }
- { opts: -Ofast -flto -DNDEBUG }
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: DEBUG - Kiwaku using ${{ matrix.cfg.compiler }} with ${{ matrix.cfg.opts }}
- name: DEBUG - Kiwaku using g++-12 with ${{ matrix.cfg.opts }}
uses: ./.github/actions/run_docker
with:
compiler: '${{ matrix.cfg.compiler }}'
compiler: 'g++-12'
options: '${{ matrix.cfg.opts }}'
linker_options: '${{ matrix.cfg.linker }}'
linker_options: ''
cpu: 2

release:
clang-linux:
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
cfg:
- { compiler: clang++, opts: "-stdlib=libc++ -Ofast -flto -DNDEBUG", linker: -stdlib=libc++ }
- { compiler: clang++, opts: -Ofast -flto -DNDEBUG , linker: }
- { compiler: g++-12 , opts: -Ofast -flto -DNDEBUG , linker: }
- { opts: -O0 , linker: }
- { opts: "-Ofast -flto -DNDEBUG" , linker: }
- { opts: "-Ofast -flto -DNDEBUG -stdlib=libc++", linker: -stdlib=libc++ }
- { opts: "-O0 -stdlib=libc++" , linker: -stdlib=libc++ }
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: Release - Kiwaku with ${{ matrix.cfg.compiler }} with ${{ matrix.cfg.opts }}
- name: DEBUG - Kiwaku using clang++ with ${{ matrix.cfg.opts }}
uses: ./.github/actions/run_docker
with:
compiler: '${{ matrix.cfg.compiler }}'
compiler: 'clang++'
options: '${{ matrix.cfg.opts }}'
linker_options: '${{ matrix.cfg.linker }}'
cpu: 2

clang-macosx:
runs-on: [macos-12]
strategy:
fail-fast: false
matrix:
cfg:
- { opts: -O0 , linker: }
- { opts: "-O0 -stdlib=libc++" , linker: -stdlib=libc++ }
- { opts: "-Ofast -flto -DNDEBUG" , linker: }
- { opts: "-Ofast -flto -DNDEBUG -stdlib=libc++", linker: -stdlib=libc++ }
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: Running CMake for clang++ with ${{ matrix.cfg.opts }}
run: |
mkdir build && cd build
cmake .. -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="${{ matrix.cfg.opts }}" -DCMAKE_EXE_LINKER_FLAGS="${{ matrix.cfg.linker }}"
- name: Compiling Unit Tests
run: cd build && make unit -j 2
- name: Running Unit Tests
run: cd build && ctest --output-on-failure -j 2

gcc-macosx:
runs-on: [macos-11]
strategy:
fail-fast: false
matrix:
cfg:
- { opts: -O0 }
- { opts: -Ofast -flto -DNDEBUG }
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: Running CMake for g++ with ${{ matrix.cfg.opts }}
run: |
mkdir build && cd build
cmake .. -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_CXX_FLAGS="${{ matrix.cfg.opts }}"
- name: Compiling Unit Tests
run: cd build && make unit -j 2
- name: Running Unit Tests
run: cd build && ctest --output-on-failure -j 2

0 comments on commit f3cf88e

Please sign in to comment.