gitlab-ci: refactor out some common stuff for Windows and Linux
authorDylan Baker <dylan@pnwbakers.com>
Wed, 23 Oct 2019 21:21:31 +0000 (14:21 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 25 Oct 2019 22:47:32 +0000 (22:47 +0000)
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
.gitlab-ci.yml
.gitlab-ci/lava-gitlab-ci.yml

index a08a33f60f781bd0887e5393c87b855c3e184f20..5e58f8144099a3826f35374f456ef7bfca3d1c49 100644 (file)
@@ -103,13 +103,10 @@ debian-10:arm64:
 
 # BUILD
 
-.build:
+# Shared between windows and Linux
+.build-common:
   extends: .ci-run-policy
   stage: build
-  cache:
-    key: ${CI_JOB_NAME}
-    paths:
-      - ccache
   artifacts:
     when: always
     paths:
@@ -117,6 +114,14 @@ debian-10:arm64:
       # scons:
       - build/*/config.log
       - shader-db
+
+# Just Linux
+.build-linux:
+  extends: .build-common
+  cache:
+    key: ${CI_JOB_NAME}
+    paths:
+      - ccache
   variables:
     CCACHE_COMPILERCHECK: "content"
   # Use ccache transparently, and print stats before/after
@@ -139,14 +144,14 @@ debian-10:arm64:
 
 .meson-build:
   extends:
-    - .build
+    - .build-linux
     - .use-debian-10:amd64
   script:
     - .gitlab-ci/meson-build.sh
 
 .scons-build:
   extends:
-    - .build
+    - .build-linux
     - .use-debian-10:amd64
   variables:
     SCONSFLAGS: "-j4"
index 61af33243b127091f04de56205173e2a5598dda6..036618dc9753dff9eda6f1bbb6ab26426c774355 100644 (file)
@@ -60,7 +60,7 @@ lava-container:arm64:
 .lava-build:
   image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:$DEBIAN_ARCH-$LAVA_IMAGE_TAG
   extends:
-    - .build
+    - .build-linux
   # Use ccache transparently, and print stats before/after
   before_script:
     - mkdir -p results mesa-build