From 5f2560a0605172eeb94f3bbbfa76453b8df2be4e Mon Sep 17 00:00:00 2001 From: lloda Date: Tue, 1 Oct 2024 14:28:49 +0200 Subject: [PATCH] Add github workflows for gcc14 --- .github/workflows/gcc14-no-sanitize.yml | 33 +++++++++++++++++++++++++ .github/workflows/gcc14.yml | 33 +++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gcc14-no-sanitize.yml create mode 100644 .github/workflows/gcc14.yml diff --git a/.github/workflows/gcc14-no-sanitize.yml b/.github/workflows/gcc14-no-sanitize.yml new file mode 100644 index 0000000..66902ad --- /dev/null +++ b/.github/workflows/gcc14-no-sanitize.yml @@ -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-24.04 + 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@v4 + - 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 diff --git a/.github/workflows/gcc14.yml b/.github/workflows/gcc14.yml new file mode 100644 index 0000000..38955ab --- /dev/null +++ b/.github/workflows/gcc14.yml @@ -0,0 +1,33 @@ +name: gcc-14 + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + gcc14: + runs-on: ubuntu-24.04 + 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@v4 + - 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 diff --git a/README.md b/README.md index c71dfc0..b8951a9 100644 --- a/README.md +++ b/README.md @@ -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