diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-14 18:15:35 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-14 18:15:35 +0200 |
| commit | 8c36dfcde8856692de2bc2456a7bb8ce00f3de56 (patch) | |
| tree | 0b7560253d9c4bde59f8e2666da60e04339672ed | |
| parent | a052243c902928593b2caa25e65a27cf4a46787e (diff) | |
removing github ci and creating scripts for helping 'run ci at home'
| -rw-r--r-- | .github/workflows/cmake-single-platform.yml | 34 | ||||
| -rw-r--r-- | .github/workflows/formating.yml | 21 | ||||
| -rwxr-xr-x | scripts/build_debug.bash | 10 | ||||
| -rwxr-xr-x | scripts/build_release.bash | 10 | ||||
| -rwxr-xr-x | scripts/formating_check.bash | 3 |
5 files changed, 23 insertions, 55 deletions
diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml deleted file mode 100644 index d768361..0000000 --- a/.github/workflows/cmake-single-platform.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: CMake on a single platform - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -env: - BUILD_TYPE: Debug - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Install GCC 14 - run: | - sudo apt update - sudo apt install -y gcc-14 g++-14 - - - name: Configure CMake - env: - CC: gcc-14 - CXX: g++-14 - run: cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - - - name: Build - env: - CC: gcc-14 - CXX: g++-14 - run: cmake --build build diff --git a/.github/workflows/formating.yml b/.github/workflows/formating.yml deleted file mode 100644 index 485cc05..0000000 --- a/.github/workflows/formating.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Formating test - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -env: - BUILD_TYPE: Debug - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Check formatting - run: | - find src -name '*.cpp' -o -name '*.hpp' | xargs clang-format --dry-run --Werror diff --git a/scripts/build_debug.bash b/scripts/build_debug.bash new file mode 100755 index 0000000..0e7422d --- /dev/null +++ b/scripts/build_debug.bash @@ -0,0 +1,10 @@ +#!/usr/bin/sh + +BUILD_MODE="Debug" +BUILD_DIR="build" + +# Setup +cmake -B build -S . -DCMAKE_BUILD_TYPE=$BUILD_MODE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + +# Build +cmake --build $BUILD_DIR diff --git a/scripts/build_release.bash b/scripts/build_release.bash new file mode 100755 index 0000000..93e5090 --- /dev/null +++ b/scripts/build_release.bash @@ -0,0 +1,10 @@ +#!/usr/bin/sh + +BUILD_MODE="Release" +BUILD_DIR="build" + +# Setup +cmake -B build -S . -DCMAKE_BUILD_TYPE=$BUILD_MODE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + +# Build +cmake --build $BUILD_DIR diff --git a/scripts/formating_check.bash b/scripts/formating_check.bash new file mode 100755 index 0000000..932d82e --- /dev/null +++ b/scripts/formating_check.bash @@ -0,0 +1,3 @@ +#!/usr/bin/sh + +find src -name '*.cpp' -o -name '*.hpp' | xargs clang-format --dry-run --Werror |
