Skip to content

Commit

Permalink
ci: Use GCC12 (for c++23) features
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes committed Mar 30, 2024
1 parent 840b031 commit 6cc5e45
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/branch-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Branch Build

on:
push:
branches-ignore:
- master

jobs:
branch-build:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt update && sudo apt install -y gcc-12 g++-12 make ragel lemon cmake
- name: Checkout Repository
uses: actions/checkout@v3

- name: Configure CMake
run: CC=gcc-12 CXX=g++-12 cmake -B ${{github.workspace}}/build

- name: Build
run: cmake --build ${{github.workspace}}/build
4 changes: 2 additions & 2 deletions .github/workflows/master-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
custom_release_rules: "release:major"

- name: Install Dependencies
run: sudo apt update && sudo apt install -y build-essential ragel lemon cmake
run: sudo apt update && sudo apt install -y gcc-12 g++-12 build-essential ragel lemon cmake

- name: Checkout Repository
uses: actions/checkout@v3
- run: git fetch --tags

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build
run: CC=gcc-12 CXX=g++-12 cmake -B ${{github.workspace}}/build

- name: Build
run: cmake --build ${{github.workspace}}/build
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ cmake_minimum_required(VERSION 3.12)

project(gifscript CXX)

set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})


find_package(RAGEL REQUIRED)

if(WIN32)
Expand Down

0 comments on commit 6cc5e45

Please sign in to comment.