瀏覽代碼

Added format stage to CI

niansa 2 年之前
父節點
當前提交
d3015162ac
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      .gitlab-ci.yml

+ 10 - 0
.gitlab-ci.yml

@@ -1,5 +1,6 @@
 stages:
   - build
+  - format
 
 build-linux:
   stage: build
@@ -14,3 +15,12 @@ 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