Browse Source

Run build stage after format stage

niansa 2 years ago
parent
commit
6cd282b8e1
1 changed files with 10 additions and 10 deletions
  1. 10 10
      .gitlab-ci.yml

+ 10 - 10
.gitlab-ci.yml

@@ -1,6 +1,15 @@
 stages:
-  - build
   - format
+  - build
+
+clang-format:
+  stage: format
+  image: suyuemu/cibuild:latest
+  resource_group: linux-ci
+  variables:
+    RELEASE_NAME: mainline
+  script:
+    - bash .ci/scripts/format/script.sh
 
 build-linux:
   stage: build
@@ -15,12 +24,3 @@ build-linux:
   artifacts:
     paths:
       - artifacts/*
-
-clang-format:
-  stage: format
-  image: suyuemu/cibuild:latest
-  resource_group: linux-ci
-  variables:
-    RELEASE_NAME: mainline
-  script:
-    - bash .ci/scripts/format/script.sh