mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
ci: route Linux x64 builds through configurable larger runner
Allow release and desktop workflows to target the new GitHub-hosted larger runner without hard-coding it, while keeping ubuntu-22.04 as a fallback and logging the effective runner selection.
This commit is contained in:
12
.github/workflows/prerelease.yml
vendored
12
.github/workflows/prerelease.yml
vendored
@@ -75,7 +75,8 @@ jobs:
|
||||
publish-tauri:
|
||||
name: Build + Publish (${{ matrix.target }})
|
||||
needs: prepare-release
|
||||
runs-on: ${{ matrix.platform }}
|
||||
# Set OPENWORK_LINUX_X64_RUNNER_LABEL to route only the Linux x86_64 build to a larger runner.
|
||||
runs-on: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || matrix.platform }}
|
||||
timeout-minutes: 360
|
||||
|
||||
env:
|
||||
@@ -112,6 +113,15 @@ jobs:
|
||||
args: "--target x86_64-pc-windows-msvc --bundles msi"
|
||||
|
||||
steps:
|
||||
- name: Log runner selection
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Requested larger runner label: ${RUNNER_LABEL:-<unset>}"
|
||||
echo "Effective runs-on: ${EFFECTIVE_RUNS_ON}"
|
||||
env:
|
||||
RUNNER_LABEL: ${{ vars.OPENWORK_LINUX_X64_RUNNER_LABEL }}
|
||||
EFFECTIVE_RUNS_ON: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || matrix.platform }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user