Skip to content

Commit

Permalink
Add github workflows for gcc14
Browse files Browse the repository at this point in the history
  • Loading branch information
lloda committed Oct 1, 2024
1 parent ac6b110 commit d348007
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/gcc14-no-sanitize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: gcc-14 -fno-sanitize=all

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
gcc14-no-sanitize:
runs-on: ubuntu-latest
strategy:
matrix:
cxxflags: ['"-O3 -fno-sanitize=all -std=c++20 -DRA_DO_OPT_SMALLVECTOR=0"',
'"-O3 -fno-sanitize=all -std=c++20 -DRA_DO_OPT_SMALLVECTOR=1"',
'"-O3 -fno-sanitize=all -DRA_DO_CHECK=0 -DNDEBUG -std=c++20"',
'"-O3 -fno-sanitize=all -std=c++2b"']
steps:
- uses: actions/checkout@v3
- name: update
run: |
sudo apt update
sudo apt install gcc-14 g++-14
- name: configure
run: CXXFLAGS=${{matrix.cxxflags}} cmake .
env:
CXX: g++-14
CC: gcc-14
- name: make
run: make
- name: make test
run: make test
33 changes: 33 additions & 0 deletions .github/workflows/gcc14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: gcc-14

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
gcc14:
runs-on: ubuntu-latest
strategy:
matrix:
cxxflags: ['"-O3 -std=c++20 -DRA_DO_OPT_SMALLVECTOR=0"',
'"-O3 -std=c++20 -DRA_DO_OPT_SMALLVECTOR=1"',
'"-O3 -DRA_DO_CHECK=0 -DNDEBUG -std=c++20"',
'"-O3 -std=c++2b"']
steps:
- uses: actions/checkout@v3
- name: update
run: |
sudo apt update
sudo apt install gcc-14 g++-14
- name: configure
run: CXXFLAGS=${{matrix.cxxflags}} cmake .
env:
CXX: g++-14
CC: gcc-14
- name: make
run: make
- name: make test
run: make test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

[![C/C++ CI](https://github.com/lloda/ra-ra/actions/workflows/gcc11.yml/badge.svg)](https://github.com/lloda/ra-ra/actions/workflows/gcc11.yml) [![C/C++ CI](https://github.com/lloda/ra-ra/actions/workflows/gcc11-no-sanitize.yml/badge.svg)](https://github.com/lloda/ra-ra/actions/workflows/gcc11-no-sanitize.yml)
[![C/C++ CI](https://github.com/lloda/ra-ra/actions/workflows/gcc11.yml/badge.svg)](https://github.com/lloda/ra-ra/actions/workflows/gcc11.yml) [![C/C++ CI](https://github.com/lloda/ra-ra/actions/workflows/gcc11-no-sanitize.yml/badge.svg)](https://github.com/lloda/ra-ra/actions/workflows/gcc11-no-sanitize.yml) [![C/C++ CI](https://github.com/lloda/ra-ra/actions/workflows/gcc14.yml/badge.svg)](https://github.com/lloda/ra-ra/actions/workflows/gcc14.yml) [![C/C++ CI](https://github.com/lloda/ra-ra/actions/workflows/gcc14-no-sanitize.yml/badge.svg)](https://github.com/lloda/ra-ra/actions/workflows/gcc14-no-sanitize.yml)

# ra-ra

Expand Down

0 comments on commit d348007

Please sign in to comment.