This commit is contained in:
tooomm 2026-06-21 17:33:47 +02:00 committed by GitHub
parent 1e253de232
commit 5d91a340dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,19 +79,19 @@ jobs:
shell: bash shell: bash
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
tag_name: ${{ steps.configure.outputs.tag }} TAG_NAME: ${{ steps.configure.outputs.tag }}
target: ${{ steps.configure.outputs.sha }} TARGET: ${{ steps.configure.outputs.sha }}
release_name: ${{ steps.prepare.outputs.title }} RELEASE_NAME: ${{ steps.prepare.outputs.title }}
body_path: ${{ steps.prepare.outputs.body_path }} BODY_PATH: ${{ steps.prepare.outputs.body_path }}
prerelease: ${{ steps.prepare.outputs.is_beta }} PRERELEASE: ${{ steps.prepare.outputs.is_beta }}
run: | run: |
args=() args=()
[[ $prerelease == yes ]] && args+=(--prerelease) [[ $PRERELEASE == yes ]] && args+=(--prerelease)
gh release create "$tag_name" --verify-tag --draft "${args[@]}" \ gh release create "$TAG_NAME" --verify-tag --draft "${args[@]}" \
--target "$target" \ --target "$TARGET" \
--title "$release_name" \ --title "$RELEASE_NAME" \
--notes-file "$body_path" --notes-file "$BODY_PATH"
build-linux: build-linux:
strategy: strategy:
@ -188,18 +188,18 @@ jobs:
shell: bash shell: bash
env: env:
SUFFIX: '-${{ matrix.distro }}${{ matrix.version }}' SUFFIX: '-${{ matrix.distro }}${{ matrix.version }}'
package: '${{ matrix.package }}' PACKAGE: '${{ matrix.package }}'
server_only: '${{ matrix.server_only }}' SERVER_ONLY: '${{ matrix.server_only }}'
run: | run: |
source .ci/docker.sh source .ci/docker.sh
args=() args=()
[[ $server_only == yes ]] && args+=(--no-client) [[ $SERVER_ONLY == yes ]] && args+=(--no-client)
[[ $GITHUB_REF == "refs/heads/master" ]] && args+=(--evict-ccache "$CCACHE_EVICTION_AGE") [[ $GITHUB_REF == "refs/heads/master" ]] && args+=(--evict-ccache "$CCACHE_EVICTION_AGE")
args+=(--ccache "$CCACHE_SIZE") args+=(--ccache "$CCACHE_SIZE")
args+=(--cmake-generator "$CMAKE_GENERATOR") args+=(--cmake-generator "$CMAKE_GENERATOR")
args+=(--suffix "$SUFFIX") args+=(--suffix "$SUFFIX")
RUN --server --release --package "$package" "${args[@]}" RUN --server --release --package "$PACKAGE" "${args[@]}"
# Delete used cache to emulate a ccache update. See https://github.com/actions/cache/issues/342 # Delete used cache to emulate a ccache update. See https://github.com/actions/cache/issues/342
- name: "Delete remote compiler cache (ccache)" - name: "Delete remote compiler cache (ccache)"
@ -234,11 +234,11 @@ jobs:
if: matrix.package != 'skip' && needs.configure.outputs.tag != null if: matrix.package != 'skip' && needs.configure.outputs.tag != null
shell: bash shell: bash
env: env:
asset_name: ${{ steps.build.outputs.fullname }} ASSET_NAME: ${{ steps.build.outputs.fullname }}
asset_path: ${{ steps.build.outputs.path }} ASSET_PATH: ${{ steps.build.outputs.path }}
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
tag_name: ${{ needs.configure.outputs.tag }} TAG_NAME: ${{ needs.configure.outputs.tag }}
run: gh release upload "$tag_name" "$asset_path#$asset_name" run: gh release upload "$TAG_NAME" "$ASSET_PATH#$ASSET_NAME"
- name: "Attest binary provenance" - name: "Attest binary provenance"
id: attestation id: attestation
@ -550,11 +550,11 @@ jobs:
id: upload_release id: upload_release
shell: bash shell: bash
env: env:
asset_name: ${{ steps.build.outputs.fullname }} ASSET_NAME: ${{ steps.build.outputs.fullname }}
asset_path: ${{ steps.build.outputs.path }} ASSET_PATH: ${{ steps.build.outputs.path }}
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
tag_name: ${{ needs.configure.outputs.tag }} TAG_NAME: ${{ needs.configure.outputs.tag }}
run: gh release upload "$tag_name" "$asset_path#$asset_name" run: gh release upload "$TAG_NAME" "$ASSET_PATH#$ASSET_NAME"
- name: "Attest binary provenance" - name: "Attest binary provenance"
if: steps.upload_release.outcome == 'success' if: steps.upload_release.outcome == 'success'