Temporarily disable linting and formatting actions
This commit is contained in:
parent
9a7969b63a
commit
2140991d8d
1 changed files with 26 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue