[gnome-build-meta/abderrahim/bst2: 15/18] .gitlab-ci: switch to buildstream 2
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/bst2: 15/18] .gitlab-ci: switch to buildstream 2
- Date: Tue, 9 Aug 2022 13:08:42 +0000 (UTC)
commit 85d9266abb108fcb2c300153dc683812a02e8c9a
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Mon Jul 4 19:35:26 2022 +0100
.gitlab-ci: switch to buildstream 2
.gitlab-ci.yml | 22 +++++++++++-----------
.gitlab-ci/buildstream-nopush.conf | 3 +--
.gitlab-ci/buildstream.conf | 17 ++++++++++-------
3 files changed, 22 insertions(+), 20 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b879abc09..5086068fb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,7 +13,7 @@ variables:
# Docker Images
DOCKER_REGISTRY: "registry.gitlab.com/freedesktop-sdk/infrastructure/freedesktop-sdk-docker-images"
- DOCKER_IMAGE_ID: "543571583e6271ede4c706aff60d389cf26a13e9"
+ DOCKER_IMAGE_ID: "f4c9709148d51f9c8073d9aaa7a5bd8e1d42a1b6"
stages:
- track
@@ -24,7 +24,7 @@ stages:
- reports
default:
- image: "${DOCKER_REGISTRY}/bst16:${DOCKER_IMAGE_ID}"
+ image: "${DOCKER_REGISTRY}/bst2:${DOCKER_IMAGE_ID}"
before_script:
# Ensure the log directory exists
- mkdir -p logs
@@ -84,7 +84,7 @@ default:
allow_failure: true
script:
- ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build "${IMAGE}"
- - ${BST} -o arch "${ARCH}" checkout --hardlinks "${IMAGE}" image
+ - ${BST} -o arch "${ARCH}" artifact checkout --hardlinks "${IMAGE}" --directory image
artifacts:
when: always
paths:
@@ -109,11 +109,11 @@ default:
- ostree init --repo repo/ --mode archive
- - ${BST} -o arch "${ARCH}" pull vm/repo.bst vm/repo-devel.bst
+ - ${BST} -o arch "${ARCH}" artifact pull vm/repo.bst vm/repo-devel.bst
- |
for element in vm/repo.bst vm/repo-devel.bst; do
- ${BST} -o arch "${ARCH}" checkout --hardlinks $element checkout-repo/
+ ${BST} -o arch "${ARCH}" artifact checkout --hardlinks $element --directory checkout-repo/
ostree pull-local --repo=repo/ checkout-repo/
rm -rf checkout-repo/
done
@@ -134,7 +134,7 @@ track:
timeout: 15m
script:
- 'sed -i "s/track-tags: false/track-tags: ${BST_TRACK_TAGS}/" project.conf'
- - ${BST} track --deps all core.bst flatpak-runtimes.bst vm/image.bst boards/pinebook-pro/image.bst
boards/rock64/image.bst boards/raspberrypi-4/image.bst vm/repo-devel.bst iso/image.bst
+ - ${BST} source track --deps all core.bst flatpak-runtimes.bst vm/image.bst boards/pinebook-pro/image.bst
boards/rock64/image.bst boards/raspberrypi-4/image.bst vm/repo-devel.bst iso/image.bst
- echo $CI_JOB_ID > track-job.id
retry: 2
# only run on branches targeting master
@@ -322,8 +322,8 @@ s3-image:
artifacts: false
script:
- ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build vm/image.bst iso/image.bst
- - ${BST} -o arch "${ARCH}" checkout --hardlinks vm/image.bst image
- - ${BST} -o arch "${ARCH}" checkout --hardlinks iso/image.bst iso
+ - ${BST} -o arch "${ARCH}" artifact checkout --hardlinks vm/image.bst --directory image
+ - ${BST} -o arch "${ARCH}" artifact checkout --hardlinks iso/image.bst --directory iso
- |
if [ -n "$CI_COMMIT_TAG" ]; then
@@ -408,10 +408,10 @@ cve_report:
- job: 'build-x86_64'
artifacts: false
script:
- - ${BST} pull flatpak/platform-manifest.bst flatpak/sdk-manifest.bst
+ - ${BST} artifact pull flatpak/platform-manifest.bst flatpak/sdk-manifest.bst
- - ${BST} checkout flatpak/platform-manifest.bst platform-manifest/
- - ${BST} checkout flatpak/sdk-manifest.bst sdk-manifest/
+ - ${BST} artifact checkout flatpak/platform-manifest.bst platform-manifest/
+ - ${BST} artifact checkout flatpak/sdk-manifest.bst sdk-manifest/
- mkdir -p cve
- cd cve
diff --git a/.gitlab-ci/buildstream-nopush.conf b/.gitlab-ci/buildstream-nopush.conf
index 06a5c2304..4c691db35 100644
--- a/.gitlab-ci/buildstream-nopush.conf
+++ b/.gitlab-ci/buildstream-nopush.conf
@@ -4,8 +4,7 @@
logdir: ${CI_PROJECT_DIR}/logs
# build area and artifacts
-builddir: ${CI_PROJECT_DIR}/build
-artifactdir: ${CI_PROJECT_DIR}/artifacts
+cachedir: ${CI_PROJECT_DIR}/cache
# and sources in the dedicated volume
sourcedir: /cache/buildstream/sources
diff --git a/.gitlab-ci/buildstream.conf b/.gitlab-ci/buildstream.conf
index f8e285ffc..29e413a79 100644
--- a/.gitlab-ci/buildstream.conf
+++ b/.gitlab-ci/buildstream.conf
@@ -4,8 +4,7 @@
logdir: ${CI_PROJECT_DIR}/logs
# build area and artifacts
-builddir: ${CI_PROJECT_DIR}/build
-artifactdir: ${CI_PROJECT_DIR}/artifacts
+cachedir: ${CI_PROJECT_DIR}/cache
# and sources in the dedicated volume
sourcedir: /cache/buildstream/sources
@@ -20,11 +19,15 @@ logging:
error-lines: 80
# configuration for pushing, client key and cert will be written by CI
-projects:
- gnome:
- artifacts:
- - url: https://m1-xlarge-x86.gnome.org:11003
+artifacts:
+ servers:
+ - url: https://m1-xlarge-x86.gnome.org:11003
+ push: true
+ auth:
client-key: client.key
client-cert: client.crt
- push: true
+
+# Use the gnome mirror by default
+projects:
+ gnome:
default-mirror: gnome
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]