Skip to content

Commit

Permalink
ci: support clang
Browse files Browse the repository at this point in the history
Ubuntu 22.04 have clang 14 by default, which partially supports
consteval - it fails tntcxx build.
  • Loading branch information
drewdzzz committed Jan 12, 2024
1 parent 61d46cf commit d0b6dcc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/reusable-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
cxx-standard:
required: false
type: number
c-compiler:
default: gcc
type: string
cxx-compiler:
default: g++
type: string
use-valgrind:
default: false
type: boolean
Expand All @@ -36,6 +42,9 @@ jobs:
run: sudo apt update && sudo apt install -y valgrind

- name: Build tntcxx
env:
CC: ${{ inputs.c-compiler }}
CXX: ${{ inputs.cxx-compiler }}
uses: ./.github/actions/build-tntcxx
with:
build-type: ${{ inputs.build-type }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,25 @@ jobs:
- ubuntu-22.04
- macos-11
- macos-12
compiler:
- {c: gcc, cxx: g++}
- {c: clang, cxx: clang++}
build-type:
- Debug
- RelWithDebInfo
cxx-standard:
- 17
- 20
exclude:
- runs-on: ubuntu-22.04
compiler.c: clang
cxx-standard: 20
with:
runs-on: ${{ matrix.runs-on }}
build-type: ${{ matrix.build-type }}
cxx-standard: ${{ matrix.cxx-standard }}
c-compiler: ${{ matrix.compiler.c }}
cxx-compiler: ${{ matrix.compiler.cxx }}

valgrind:
uses: ./.github/workflows/reusable-testing.yml
Expand Down

0 comments on commit d0b6dcc

Please sign in to comment.