Compare commits
No commits in common. "ef07346fea543b62dd4da4161a91567025289c3f" and "4f4266327f8b74bbe0c062fc4a53ff256d05846e" have entirely different histories.
ef07346fea
...
4f4266327f
1 changed files with 3 additions and 16 deletions
|
@ -4,19 +4,6 @@ on: [push]
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -26,11 +13,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 cmake libglm-dev
|
sudo apt-get -y install cmake
|
||||||
- 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 .
|
||||||
- name: Compile the code
|
- name: Compile the code
|
||||||
run: cmake --build cmake-build-debug
|
run: cmake --build .
|
||||||
- name: Save executable
|
- name: Save executable
|
||||||
uses: forgejo/upload-artifact@v4
|
uses: forgejo/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue