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 cd5cd86 commit 3553cb3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/actions/build-tntcxx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ inputs:
default: 'false'
cxx-standard:
desciption: 'Corresponds to CMAKE_CXX_STANDARD option of CMake'
default: 17

runs:
using: "composite"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reusable-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
cxx-standard:
required: false
type: number
compiler:
default: gcc
type: string
use-valgrind:
default: false
type: boolean
Expand All @@ -36,6 +39,9 @@ jobs:
run: sudo apt update && sudo apt install -y valgrind

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

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

0 comments on commit 3553cb3

Please sign in to comment.