]> git.mdlowis.com Git - proto/labwc.git/commitdiff
CI: check codestyle only once
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 28 Nov 2022 11:05:43 +0000 (12:05 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 28 Nov 2022 15:50:50 +0000 (16:50 +0100)
.github/workflows/build.yml

index c75f82bccebbb606e70caca5b45ad78d68d6553d..e1f71cf2293205a40bc13d994190efbd6e4ef786 100644 (file)
@@ -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