From 2140991d8dd895536710f40f0a3a346d16db7b9f Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sat, 1 Mar 2025 15:37:32 -0500 Subject: [PATCH 1/3] Temporarily disable linting and formatting actions --- .forgejo/workflows/build.yaml | 52 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 5448de1..659b20d 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -4,33 +4,33 @@ on: [push] name: Build jobs: - format: - name: Format - runs-on: ubuntu-22.04 - steps: - - name: Check out the code - uses: actions/checkout@v4 - - name: Install clang-format - run: | - sudo apt-get update - sudo apt-get -y install clang-format - - name: Check the code's formatting - run: clang-format --dry-run src/*.h src/*.cpp 2>&1 | tee fmt.log; [ ! -s fmt.log ] + # format: + # name: Format + # runs-on: ubuntu-22.04 + # steps: + # - name: Check out the code + # uses: actions/checkout@v4 + # - name: Install clang-format + # run: | + # sudo apt-get update + # sudo apt-get -y install clang-format + # - name: Check the code's formatting + # run: clang-format --dry-run src/*.h src/*.cpp 2>&1 | tee fmt.log; [ ! -s fmt.log ] - lint: - name: Lint - runs-on: ubuntu-22.04 - steps: - - name: Check out the code - uses: actions/checkout@v4 - - name: Install clang-tidy and the toolchain - run: | - sudo apt-get update - sudo apt-get -y install clang-tidy cmake freeglut3-dev libglew-dev libglm-dev - - name: Set up the build environment - run: cmake -S . -B cmake-build-debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - - name: Have clang-tidy lint for errors - run: clang-tidy -p cmake-build-debug src/*.cpp src/*.h --warnings-as-errors='*' + # lint: + # name: Lint + # runs-on: ubuntu-22.04 + # steps: + # - name: Check out the code + # uses: actions/checkout@v4 + # - name: Install clang-tidy and the toolchain + # run: | + # sudo apt-get update + # sudo apt-get -y install clang-tidy cmake freeglut3-dev libglew-dev libglm-dev + # - name: Set up the build environment + # run: cmake -S . -B cmake-build-debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + # - name: Have clang-tidy lint for errors + # run: clang-tidy -p cmake-build-debug src/*.cpp src/*.h --warnings-as-errors='*' build: name: Build From a362874f2272058942c48abcc71664444928cb5d Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sat, 1 Mar 2025 15:49:20 -0500 Subject: [PATCH 2/3] Use latest CMake --- .forgejo/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 659b20d..e306910 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -41,7 +41,9 @@ jobs: - name: Install the toolchain run: | sudo apt-get update - sudo apt-get -y install cmake freeglut3-dev libglew-dev libglm-dev + sudo apt-get -y install freeglut3-dev libglew-dev libglm-dev + curl -L https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-linux-x86_64.sh -o cmake-install.sh + ./cmake-install.sh - name: Set up the build environment run: cmake -S . -B cmake-build-debug - name: Compile the code From 9d7265b362c89333306ffe4a9544a178880333f9 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sat, 1 Mar 2025 15:49:43 -0500 Subject: [PATCH 3/3] Use Ninja generator to support C++20 modules --- .forgejo/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index e306910..29b74a6 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -45,7 +45,7 @@ jobs: curl -L https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-linux-x86_64.sh -o cmake-install.sh ./cmake-install.sh - name: Set up the build environment - run: cmake -S . -B cmake-build-debug + run: cmake -S . -B cmake-build-debug -G Ninja - name: Compile the code run: cmake --build cmake-build-debug - name: Save executable