From b5ed87f41fb4e4114d8dd360a972db96288acdd4 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 17 Nov 2025 21:08:00 -0500 Subject: [PATCH 1/7] workspace debugging --- .circleci/config.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 52b55e0..7186071 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,17 +23,30 @@ jobs: - run: name: "Create source tarball" command: | - echo "Creating tarball for $VERSION" mkdir -p /tmp/artifacts git-archive-all --force-submodules --prefix=offscreen-${VERSION}/ /tmp/artifacts/offscreen-${VERSION}.tar.gz - - store_artifacts: - path: /tmp/artifacts - destination: source-tarball - persist_to_workspace: root: /tmp/artifacts paths: - offscreen-*.tar.gz + calculate-checksum: + docker: + - image: cimg/python:3.10 + steps: + - attach_workspace: + at: /tmp/workspace + - run: + name: "Extract version" + command: echo "export VERSION=${CIRCLE_TAG#offscreen-}" >> $BASH_ENV + - run: + name: "Calculate SHA256 checksum" + command: | + sha256sum /tmp/artifacts/offscreen-${VERSION}.tar.gz > /tmp/artifacts/offscreen-${VERSION}.sha256 + - store_artifacts: + path: /tmp/artifacts + destination: source-tarball + workflows: version: 2 release: @@ -44,3 +57,6 @@ workflows: only: /^offscreen-.*/ branches: ignore: /.*/ + - calculate-checksum: + requires: + - cut-release From c70eac78f30bb07a88fed168870146b082030c1a Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 17 Nov 2025 21:52:20 -0500 Subject: [PATCH 2/7] tag filters --- .circleci/config.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7186071..71c8a85 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,16 +47,17 @@ jobs: path: /tmp/artifacts destination: source-tarball +filters: &filters + tags: + only: /^offscreen-.*/ + workflows: version: 2 - release: + my-release-workflow: jobs: - cut-release: - filters: - tags: - only: /^offscreen-.*/ - branches: - ignore: /.*/ + filters: *filters - calculate-checksum: - requires: - - cut-release + filters: *filters + requires: + - cut-release From adfa2d0dccf7b843ae84f2c8dc35ebb8f1122fb5 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 17 Nov 2025 21:59:46 -0500 Subject: [PATCH 3/7] tag filters --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 71c8a85..0c716cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -56,8 +56,8 @@ workflows: my-release-workflow: jobs: - cut-release: - filters: *filters + filters: *filters - calculate-checksum: - filters: *filters - requires: - - cut-release + filters: *filters + requires: + - cut-release From c28ce8c5ae4f120ea245c48893df8c26df4d0fcd Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 17 Nov 2025 22:03:16 -0500 Subject: [PATCH 4/7] tag filters --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0c716cd..e268632 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,7 +35,7 @@ jobs: - image: cimg/python:3.10 steps: - attach_workspace: - at: /tmp/workspace + at: /tmp/artifacts - run: name: "Extract version" command: echo "export VERSION=${CIRCLE_TAG#offscreen-}" >> $BASH_ENV From 4eb6e0f0ad364234244754dcb84802e7992fa85e Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Tue, 18 Nov 2025 21:01:26 -0500 Subject: [PATCH 5/7] Add SHA512 checksum to CircleCI config --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e268632..449ddc8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,6 +43,10 @@ jobs: name: "Calculate SHA256 checksum" command: | sha256sum /tmp/artifacts/offscreen-${VERSION}.tar.gz > /tmp/artifacts/offscreen-${VERSION}.sha256 + - run: + name: "Calculate SHA512 checksum" + command: | + sha512sum /tmp/artifacts/offscreen-${VERSION}.tar.gz > /tmp/artifacts/offscreen-${VERSION}.sha512 - store_artifacts: path: /tmp/artifacts destination: source-tarball From ce8ad07183d861eb7522d8699267b7eedea17772 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Tue, 18 Nov 2025 21:09:02 -0500 Subject: [PATCH 6/7] Fix CircleCI triggers to ignore branches --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 449ddc8..fdc6cab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -54,6 +54,8 @@ jobs: filters: &filters tags: only: /^offscreen-.*/ + branches: + ignore: /.*/ workflows: version: 2 From f28babd3bc57113f445bccb300df3e1c968bf1a7 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Tue, 18 Nov 2025 21:12:40 -0500 Subject: [PATCH 7/7] Echo extracted version in CircleCI logs --- .circleci/config.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fdc6cab..d825d6f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,9 @@ jobs: git submodule update --init - run: name: "Extract version" - command: echo "export VERSION=${CIRCLE_TAG#offscreen-}" >> $BASH_ENV + command: | + echo "export VERSION=${CIRCLE_TAG#offscreen-}" >> $BASH_ENV + echo "Extracted version: ${CIRCLE_TAG#offscreen-}" - run: name: "Create VERSION file" command: echo "$VERSION" > VERSION @@ -38,7 +40,9 @@ jobs: at: /tmp/artifacts - run: name: "Extract version" - command: echo "export VERSION=${CIRCLE_TAG#offscreen-}" >> $BASH_ENV + command: | + echo "export VERSION=${CIRCLE_TAG#offscreen-}" >> $BASH_ENV + echo "Extracted version: ${CIRCLE_TAG#offscreen-}" - run: name: "Calculate SHA256 checksum" command: |