-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: black-desk <[email protected]>
- Loading branch information
1 parent
2f7c466
commit 7cf8dc7
Showing
12 changed files
with
54 additions
and
11,384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,45 +18,51 @@ jobs: | |
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
type: [Debug, Release] | ||
dependency: [Vendor, Online] | ||
container: | ||
- debian:oldstable-slim | ||
- debian:stable-slim | ||
- debian:sid-slim | ||
cxx: [g++, clang++] | ||
container: | ||
image: ${{ matrix.container }} | ||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# - uses: hendrikmuhs/[email protected] | ||
# with: | ||
# key: ${{ matrix.cxx }}-${{ matrix.type }} | ||
- name: Cache CPM.cmake Source | ||
uses: actions/cache@v4 | ||
with: | ||
path: .cache/cpm/source | ||
key: ${{ runner.os }}-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||
key: ${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
- name: Install system dependencies | ||
run: | | ||
sudo apt update && | ||
sudo apt install libsystemd-dev | ||
- name: Build project with cmake | ||
apt update && | ||
apt install pkg-config make git g++ clang -y | ||
- name: Build project with cmake by preset debug | ||
run: | | ||
mkdir -p .cache/cpm/source && | ||
export CXX="${{ matrix.cxx }}" && | ||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" && | ||
export CPM_DOWNLOAD_ALL="ON" && | ||
export CPM_SOURCE_CACHE="$PWD/.cache/cpm/source" && | ||
export CFLAGS="$CFLAGS -Wall" && | ||
export CFLAGS="$CFLAGS -Wextra" && | ||
export CFLAGS="$CFLAGS -Wpedantic" && | ||
export CFLAGS="$CFLAGS -Wno-extra-semi -Wno-unused-command-line-argument -Wno-gnu-zero-variadic-macro-arguments" && | ||
export CFLAGS="$CFLAGS -fsanitize=address,undefined" && | ||
export CXXFLAGS="$CFLAGS" && | ||
cmake --preset ${{ matrix.dependency }}${{ matrix.type }} && | ||
cmake --build --preset ${{ matrix.dependency }}${{ matrix.type }} -j | ||
- name: Run tests | ||
if: ${{ false }} # This project has no tests for now. | ||
cmake --workflow --preset debug | ||
- name: Install extra dependencies | ||
run: | | ||
cmake --build build -t test -j | ||
apt update && | ||
apt install libexpected-dev libspdlog-dev nlohmann-json3-dev -y | ||
- name: Build project with cmake by preset ci | ||
run: | | ||
mkdir -p .cache/cpm/source && | ||
export CXX="${{ matrix.cxx }}" && | ||
export CPM_SOURCE_CACHE="$PWD/.cache/cpm/source" && | ||
cmake --workflow --preset ci | ||
- name: Build project with cmake by preset ci-with-spdlog | ||
run: | | ||
mkdir -p .cache/cpm/source && | ||
export CXX="${{ matrix.cxx }}" && | ||
export CPM_SOURCE_CACHE="$PWD/.cache/cpm/source" && | ||
cmake --workflow --preset ci | ||
pass: | ||
name: Pass | ||
needs: [checks, build-and-test] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#include <exception> | ||
#include <iostream> | ||
#include <map> | ||
#include <string> | ||
#include <string_view> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.