mirror of
https://github.com/open-goal/jak-project
synced 2026-05-26 15:46:14 -04:00
c4a92571b2
* ci: fix windows releases (hopefully) * scripts: fix Taskfile file references for linux * asserts: add `ASSERT_MSG` macro and ensure `stdout` is flushed before `abort`ing * asserts: refactor all `assert(false);` with a preceeding message instances * lint: format * temp... * fix compiler errors * assert: allow for string literals in `ASSERT_MSG` * lint: formatting * revert temp change for testing
32 lines
892 B
YAML
32 lines
892 B
YAML
name: Linter
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
# events but only for the master branch
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
lint:
|
|
name: Linting & Formatting
|
|
runs-on: ubuntu-20.04
|
|
# Set some sort of timeout in the event of run-away builds. We are limited on concurrent jobs so, get rid of them.
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Get Package Dependencies
|
|
run: |
|
|
sudo apt install clang-format clang-tidy
|
|
clang-format -version
|
|
|
|
- name: Check Clang-Formatting
|
|
run: |
|
|
chmod +x ./third-party/run-clang-format/run-clang-format.py
|
|
./third-party/run-clang-format/run-clang-format.py -r common decompiler game goalc test --color always
|