From 34fab6a17648ffd76264214dcc726a54748e21bc Mon Sep 17 00:00:00 2001 From: Colin E <5352197+Kewlan@users.noreply.github.com> Date: Sun, 8 Jan 2023 13:54:41 +0100 Subject: [PATCH] Add build check (#621) --- .github/workflows/checks.yml | 33 ++++++++++++++++++++++++ .github/workflows/clang_format_check.yml | 16 ------------ 2 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/checks.yml delete mode 100644 .github/workflows/clang_format_check.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 00000000..48134faf --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,33 @@ +name: OoT3DR Checks + +on: + pull_request: + +jobs: + format: + name: Verify Formatting + runs-on: ubuntu-latest + + steps: + - name: Checkout Project + uses: actions/checkout@v3 + + - name: Format Project + uses: DoozyX/clang-format-lint-action@v0.15 + with: + source: "./code ./source" + extensions: 'c,h,cpp,hpp' + clangFormatVersion: 14 + + build: + name: Confirm Compilable + runs-on: ubuntu-latest + container: + image: ghcr.io/z3dr/randotools:latest + + steps: + - name: Checkout Project + uses: actions/checkout@v3 + + - name: Compile Project + run: make -j diff --git a/.github/workflows/clang_format_check.yml b/.github/workflows/clang_format_check.yml deleted file mode 100644 index 8052126e..00000000 --- a/.github/workflows/clang_format_check.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: clang-format Check - -on: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: DoozyX/clang-format-lint-action@v0.15 - with: - source: "./code ./source" - extensions: 'c,h,cpp,hpp' - clangFormatVersion: 14