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:
11
.github/workflows/build-desktop.yml
vendored
11
.github/workflows/build-desktop.yml
vendored
@@ -10,9 +10,18 @@ permissions:
|
||||
jobs:
|
||||
build-linux:
|
||||
name: Tauri Build (Linux)
|
||||
runs-on: ubuntu-22.04
|
||||
# Set OPENWORK_LINUX_X64_RUNNER_LABEL to route this job to a larger GitHub-hosted runner.
|
||||
runs-on: ${{ vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || 'ubuntu-22.04' }}
|
||||
|
||||
steps:
|
||||
- name: Log runner selection
|
||||
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: ${{ vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || 'ubuntu-22.04' }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
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:
|
||||
|
||||
12
.github/workflows/release-macos-aarch64.yml
vendored
12
.github/workflows/release-macos-aarch64.yml
vendored
@@ -228,7 +228,8 @@ jobs:
|
||||
name: Build + Publish (${{ matrix.target }})
|
||||
needs: [resolve-release, verify-release]
|
||||
if: needs.resolve-release.outputs.build_tauri == 'true'
|
||||
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:
|
||||
RELEASE_TAG: ${{ needs.resolve-release.outputs.release_tag }}
|
||||
@@ -267,6 +268,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: Enable git long paths (Windows)
|
||||
if: matrix.os_type == 'windows'
|
||||
shell: pwsh
|
||||
|
||||
Reference in New Issue
Block a user