From a57d3679778dc71973344ae0ee51da47662d29cb Mon Sep 17 00:00:00 2001 From: Pavel Kuznetsov Date: Sat, 7 Nov 2026 10:50:59 +0200 Subject: [PATCH 1/3] ci: use shared pinned GitVersion action without duplicating installation --- .github/workflows/gitversion.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gitversion.yml b/.github/workflows/gitversion.yml index a081b63..7daf4e8 100644 --- a/.github/workflows/gitversion.yml +++ b/.github/workflows/gitversion.yml @@ -19,13 +19,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - name: Install GitVersion - run: dotnet tool install GitVersion.Tool --tool-path "$RUNNER_TEMP/gitversion" --version 6.8.2 - - name: Calculate and validate version - shell: bash - run: | - set -euo pipefail - version="$("$RUNNER_TEMP/gitversion/dotnet-gitversion" /showvariable SemVer)" - test -n "$version" - echo "Calculated GitVersion SemVer: $version" - echo "### GitVersion: $version" >> "$GITHUB_STEP_SUMMARY" + - name: Calculate and validate version (shared platform) + uses: 4FusionLab/.github/.github/actions/resolve-version@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + variable: SemVer From 884aa701f0ca4a8c8820dfe457941f27cdf4bdfd Mon Sep 17 00:00:00 2001 From: Pavel Kuznetsov Date: Sat, 7 Nov 2026 10:51:55 +0200 Subject: [PATCH 2/3] ci: reuse pinned shared version and runtime-change gates --- .github/workflows/texture-tests.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/texture-tests.yml b/.github/workflows/texture-tests.yml index fceab94..f4a2cb7 100644 --- a/.github/workflows/texture-tests.yml +++ b/.github/workflows/texture-tests.yml @@ -49,13 +49,14 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - run: python scripts/release_changes.py --self-test - - name: Detect runtime changes + - name: Detect runtime changes (shared platform) id: impact if: github.event_name == 'push' && github.ref == 'refs/heads/main' - env: - BEFORE: ${{ github.event.before }} - run: python scripts/release_changes.py --before "$BEFORE" --after "$GITHUB_SHA" --github-output "$GITHUB_OUTPUT" + uses: 4FusionLab/.github/.github/actions/runtime-changes@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + before: ${{ github.event.before }} + after: ${{ github.sha }} + paths-file: .github/release-paths.txt version: name: GitVersion 6.8.2 @@ -67,15 +68,9 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - name: Calculate numeric version + - name: Resolve GitVersion (shared platform) id: gitversion - shell: bash - run: | - set -euo pipefail - dotnet tool install GitVersion.Tool --tool-path "$RUNNER_TEMP/gitversion" --version 6.8.2 - version="$("$RUNNER_TEMP/gitversion/dotnet-gitversion" /showvariable MajorMinorPatch)" - [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] - echo "version=$version" >> "$GITHUB_OUTPUT" + uses: 4FusionLab/.github/.github/actions/resolve-version@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 release: name: Publish runtime ZIP From 76c65a537890323125655d28b2dba8380be38eb0 Mon Sep 17 00:00:00 2001 From: Pavel Kuznetsov Date: Sat, 7 Nov 2026 10:53:22 +0200 Subject: [PATCH 3/3] ci: share Filamentra release notes and validate packaged runtime ZIP --- .github/workflows/texture-tests.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/texture-tests.yml b/.github/workflows/texture-tests.yml index f4a2cb7..0712967 100644 --- a/.github/workflows/texture-tests.yml +++ b/.github/workflows/texture-tests.yml @@ -90,17 +90,35 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.12' - - name: Build, validate and publish + - name: Generate release notes (shared platform) + uses: 4FusionLab/.github/.github/actions/release-notes@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + product: Filamentra + version: ${{ needs.version.outputs.version }} + output: ${{ runner.temp }}/release-notes.md + - name: Build source ZIP shell: bash env: - GH_TOKEN: ${{ github.token }} VERSION: ${{ needs.version.outputs.version }} run: | set -euo pipefail - tag="v$VERSION" - python scripts/release_notes.py --product Filamentra --version "$VERSION" --output "$RUNNER_TEMP/release-notes.md" python scripts/build_release.py --version "$VERSION" (cd dist && sha256sum -c "Filamentra-$VERSION.zip.sha256") + - name: Verify source ZIP (shared platform) + uses: 4FusionLab/.github/.github/actions/verify-archive@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + product: Filamentra + version: ${{ needs.version.outputs.version }} + archives: dist/Filamentra-${{ needs.version.outputs.version }}.zip + notes: ${{ runner.temp }}/release-notes.md + - name: Publish immutable release + shell: bash + env: + GH_TOKEN: ${{ github.token }} + VERSION: ${{ needs.version.outputs.version }} + run: | + set -euo pipefail + tag="v$VERSION" if git rev-parse -q --verify "refs/tags/$tag^{commit}" >/dev/null; then test "$(git rev-parse "$tag^{commit}")" = "$GITHUB_SHA" || { echo "Version tag already belongs to another commit: $tag" >&2