From d616d719eb23a883f5831fb6d0c6d2ec283518d0 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Mon, 28 Nov 2022 12:05:43 +0100 Subject: [PATCH] CI: check codestyle only once --- .github/workflows/build.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c75f82bc..e1f71cf2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,10 +7,20 @@ # Recommended GH CI Void mirror based on # https://docs.voidlinux.org/xbps/repositories/mirrors/changing.html -name: Compile +name: CI on: [pull_request] jobs: + codestyle: + name: CodeStyleCheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Code Style + run: | + ./scripts/check build: + name: Build + needs: codestyle strategy: fail-fast: false matrix: @@ -136,10 +146,3 @@ jobs: meson build-clang-no-xwayland -Dxwayland=disabled --werror meson compile -C build-clang-no-xwayland ' | $TARGET - - - name: Run coding style checks - run: | - echo ' - cd "$GITHUB_WORKSPACE" - ./scripts/check - ' | $TARGET