pass patch number to the engine

This commit is contained in:
MihailRis 2026-11-01 17:30:34 +03:00
parent e370ec6495
commit 3e22dd6329
7 changed files with 48 additions and 7 deletions

View file

@ -13,24 +13,32 @@ jobs:
prepare:
runs-on: ubuntu-latest
steps:
- run: echo "exists just for outputs"
- id: version
run: |
if [[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.([0-9]+) ]]; then
echo "patch=${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT"
fi
outputs:
build_name: '${{ env.RELEASE_VERSION }}'
version_patch: '${{ steps.version.outputs.patch }}'
build_linux:
needs: [prepare]
uses: ./.github/workflows/appimage.yml
with:
build_name: '${{ needs.prepare.outputs.build_name }}'
version_patch: '${{ needs.prepare.outputs.version_patch }}'
build_macos:
needs: [prepare]
uses: ./.github/workflows/macos.yml
with:
build_name: '${{ needs.prepare.outputs.build_name }}'
version_patch: '${{ needs.prepare.outputs.version_patch }}'
build_windows:
needs: [prepare]
uses: ./.github/workflows/windows-clang.yml
with:
build_name: '${{ needs.prepare.outputs.build_name }}'
version_patch: '${{ needs.prepare.outputs.version_patch }}'
publish_release:
runs-on: ubuntu-latest
needs: [build_linux, build_macos, build_windows]