Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
push:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake g++
cmake --version
g++ --version

- name: ./build-debug
run: |
./build-debug
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.3)

project(cz)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

file(GLOB_RECURSE SRCS src/*.cpp)
Expand Down
2 changes: 1 addition & 1 deletion build-debug
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ cd "$(dirname "$0")"

./run-build.sh build/debug Debug -DCZ_BUILD_TESTS=1

./build/debug/cz-test --use-colour=no
./build/debug/cz-test --colour-mode=none
2 changes: 1 addition & 1 deletion build-debug.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ try {
./run-build.ps1 build/debug Debug -DCZ_BUILD_TESTS=1
if (!$?) { exit 1 }

./build/debug/cz-test.exe --use-colour=no
./build/debug/cz-test.exe --colour-mode=none
if (!$?) { exit 1 }
} finally {
Pop-Location
Expand Down
Loading