]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
.gitlab-ci.yml: use artifacts:untracked
authorDaiki Ueno <ueno@gnu.org>
Fri, 17 Feb 2023 06:02:29 +0000 (15:02 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 20 Feb 2023 00:19:26 +0000 (09:19 +0900)
The "artifacts:untracked" enables to efficiently archive build
artifacts:
https://docs.gitlab.com/ee/ci/yaml/#artifactsuntracked

Also copy files with bootstrap, as symlinks are excluded from the
artifacts.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
.gitlab-ci.yml

index d626e27420a207c017b50c12cae1719b389d2cd5..985e7cf5809ec2c38b492b41a5cff99503a4b456 100644 (file)
@@ -52,24 +52,30 @@ default:
 
   interruptible: true
 
+.submodule-paths: &submodule-paths
+  - ./cligen
+  - ./devel/abi-dump
+  - ./devel/libtasn1
+  - ./devel/nettle
+  - ./devel/openssl
+  - ./gnulib
+  - ./tests/suite/tls-fuzzer/python-ecdsa
+  - ./tests/suite/tls-fuzzer/tlsfuzzer
+  - ./tests/suite/tls-fuzzer/tlslite-ng
+  - ./tests/suite/tls-interoperability
+  
 .bootstrap:
   stage: bootstrap
   tags:
     - shared
     - linux
   script:
-    - SUBMODULE_NOFETCH=1 ./bootstrap
+    - SUBMODULE_NOFETCH=1 ./bootstrap --copy --skip-po
   artifacts:
     expire_in: 1 day
-    #when: on_failure
-    paths:
-      - ./
-    exclude:
-      - .git/ # passing forward .git causes warnings and possibly problems
-      - ./**/.git/ # passing forward .git causes warnings and possibly problems
-      - ./**/*.c
-      - ./**/*.h
-      - ./**/*.o
+    untracked: true
+    # submodules are not copied through artifacts:untracked
+    paths: *submodule-paths
 
 .build:
   stage: build
@@ -80,15 +86,9 @@ default:
     - tags # TODO
   artifacts:
     expire_in: 1 day
-    #when: on_failure
-    paths:
-      - ./
-    exclude:
-      - .git/ # passing forward .git causes warnings and possibly problems
-      - ./**/.git/ # passing forward .git causes warnings and possibly problems
-      - ./**/*.c
-      - ./**/*.h
-      - ./**/*.o
+    untracked: true
+    # submodules are not copied through artifacts:untracked
+    paths: *submodule-paths
 
 .test:
   stage: test