Compare commits
No commits in common. "actions" and "main" have entirely different histories.
2 changed files with 29 additions and 33 deletions
|
@ -4,33 +4,33 @@ on: [push]
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# format:
|
format:
|
||||||
# name: Format
|
name: Format
|
||||||
# runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# steps:
|
steps:
|
||||||
# - name: Check out the code
|
- name: Check out the code
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# - name: Install clang-format
|
- name: Install clang-format
|
||||||
# run: |
|
run: |
|
||||||
# sudo apt-get update
|
sudo apt-get update
|
||||||
# sudo apt-get -y install clang-format
|
sudo apt-get -y install clang-format
|
||||||
# - name: Check the code's formatting
|
- name: Check the code's formatting
|
||||||
# run: clang-format --dry-run src/*.h src/*.cpp 2>&1 | tee fmt.log; [ ! -s fmt.log ]
|
run: clang-format --dry-run src/*.h src/*.cpp 2>&1 | tee fmt.log; [ ! -s fmt.log ]
|
||||||
|
|
||||||
# lint:
|
lint:
|
||||||
# name: Lint
|
name: Lint
|
||||||
# runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# steps:
|
steps:
|
||||||
# - name: Check out the code
|
- name: Check out the code
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# - name: Install clang-tidy and the toolchain
|
- name: Install clang-tidy and the toolchain
|
||||||
# run: |
|
run: |
|
||||||
# sudo apt-get update
|
sudo apt-get update
|
||||||
# sudo apt-get -y install clang-tidy cmake freeglut3-dev libglew-dev libglm-dev
|
sudo apt-get -y install clang-tidy cmake freeglut3-dev libglew-dev libglm-dev
|
||||||
# - name: Set up the build environment
|
- name: Set up the build environment
|
||||||
# run: cmake -S . -B cmake-build-debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
run: cmake -S . -B cmake-build-debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||||
# - name: Have clang-tidy lint for errors
|
- name: Have clang-tidy lint for errors
|
||||||
# run: clang-tidy -p cmake-build-debug src/*.cpp src/*.h --warnings-as-errors='*'
|
run: clang-tidy -p cmake-build-debug src/*.cpp src/*.h --warnings-as-errors='*'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
@ -41,13 +41,11 @@ jobs:
|
||||||
- name: Install the toolchain
|
- name: Install the toolchain
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install clang freeglut3-dev libglew-dev libglm-dev ninja-build
|
sudo apt-get -y install cmake freeglut3-dev libglew-dev libglm-dev
|
||||||
curl -L https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-linux-aarch64.sh -o cmake-install.sh
|
|
||||||
/bin/env sh cmake-install.sh --skip-license
|
|
||||||
- name: Set up the build environment
|
- name: Set up the build environment
|
||||||
run: bin/cmake -S . -B cmake-build-debug -G Ninja
|
run: cmake -S . -B cmake-build-debug
|
||||||
- name: Compile the code
|
- name: Compile the code
|
||||||
run: bin/cmake --build cmake-build-debug
|
run: cmake --build cmake-build-debug
|
||||||
- name: Save executable
|
- name: Save executable
|
||||||
uses: forgejo/upload-artifact@v4
|
uses: forgejo/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.22)
|
cmake_minimum_required(VERSION 3.22)
|
||||||
project(perlin-shadows)
|
project(perlin-shadows)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER "/usr/bin/clang")
|
|
||||||
set(CMAKE_CXX_COMPILER "/usr/bin/clang++")
|
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
|
|
||||||
include_directories(src)
|
include_directories(src)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue