Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/gitversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
47 changes: 30 additions & 17 deletions .github/workflows/texture-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -95,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
Expand Down
Loading