Skip to content

Commit

Permalink
Split Travis validation across platforms
Browse files Browse the repository at this point in the history
Cover both gcc and clang on Linux
  • Loading branch information
serge-sans-paille committed Aug 28, 2023
1 parent b17cc5d commit 625e049
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/frozen.yml → .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ on: [push]

jobs:
build_frozen:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
compiler:
- gcc
- clang
cmake_args:
- ""
cxxstandard:
Expand All @@ -20,7 +19,7 @@ jobs:
- 2a
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 1

Expand All @@ -30,14 +29,14 @@ jobs:
- name: Configure
working-directory: build
env:
CXXFLAGS: ${{matrix.os == 'windows-latest' && '/std:' || '-std='}}c++${{matrix.cxxstandard}}
CXX: ${{matrix.compiler}}
CXXFLAGS: -std=c++${{matrix.cxxstandard}}
run: cmake -DCMAKE_BUILD_TYPE=DEBUG "-Dfrozen.coverage=ON" -DCMAKE_VERBOSE_MAKEFILE=ON ..

- name: Build
working-directory: build
run: cmake --build .

- name: Test
if: startsWith(matrix.os, 'windows') == false
working-directory: build
run: cmake --build . --target test
38 changes: 38 additions & 0 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on: [push]

jobs:
build_frozen:
runs-on: macOS-latest
strategy:
fail-fast: false
matrix:
cmake_args:
- ""
cxxstandard:
- 14
- 17
- 2a
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Prepare
run: cmake -E make_directory build

- name: Configure
working-directory: build
env:
CXXFLAGS: -std=c++${{matrix.cxxstandard}}
run: cmake -DCMAKE_BUILD_TYPE=DEBUG "-Dfrozen.coverage=ON" -DCMAKE_VERBOSE_MAKEFILE=ON ..

- name: Build
working-directory: build
run: cmake --build .

- name: Test
working-directory: build
run: cmake --build . --target test
38 changes: 38 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on: [push]

jobs:
build_frozen:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
cmake_args:
- ""
cxxstandard:
- 14
- 17
- 2a
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Prepare
run: cmake -E make_directory build

- name: Configure
working-directory: build
env:
CXXFLAGS: /std:c++${{matrix.cxxstandard}}
run: cmake -DCMAKE_BUILD_TYPE=DEBUG "-Dfrozen.coverage=ON" -DCMAKE_VERBOSE_MAKEFILE=ON ..

- name: Build
working-directory: build
run: cmake --build .

- name: Test
working-directory: build
run: cmake --build . --target test

0 comments on commit 625e049

Please sign in to comment.