Compare commits
2 commits
4f4266327f
...
ef07346fea
Author | SHA1 | Date | |
---|---|---|---|
ef07346fea | |||
0d79d17738 |
1 changed files with 16 additions and 3 deletions
|
@ -4,6 +4,19 @@ 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 ]"
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-22.04
|
||||
|
@ -13,11 +26,11 @@ jobs:
|
|||
- name: Install the toolchain
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install cmake
|
||||
sudo apt-get -y install cmake libglm-dev
|
||||
- name: Set up the build environment
|
||||
run: cmake .
|
||||
run: cmake -S . -B cmake-build-debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
- name: Compile the code
|
||||
run: cmake --build .
|
||||
run: cmake --build cmake-build-debug
|
||||
- name: Save executable
|
||||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue