From 7551fba3d233a1265282da1b10622c9f6a3be1c1 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Wed, 1 Mar 2023 05:50:16 -0500 Subject: [PATCH] [CI] Allow selfhosted runner configuration using repository variables (#2560) --- .github/workflows/generate-builds.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-builds.yml b/.github/workflows/generate-builds.yml index 8359ffc31..b4a46e9ce 100644 --- a/.github/workflows/generate-builds.yml +++ b/.github/workflows/generate-builds.yml @@ -7,7 +7,7 @@ concurrency: cancel-in-progress: true jobs: build-macos: - runs-on: macos-12 + runs-on: ${{ vars.MAC_RUNNER || 'macos-12' }} steps: - uses: actions/checkout@v3 with: @@ -70,7 +70,7 @@ jobs: - os: ubuntu-22.04 gcc: 12 archive-suffix: performance - runs-on: ${{ matrix.os }} + runs-on: ${{ (matrix.os == 'ubuntu-20.04' && (vars.LINUX_COMPATIBILITY_RUNNER || matrix.os)) || (matrix.os == 'ubuntu-22.04' && (vars.LINUX_PERFORMANCE_RUNNER || matrix.os)) }} steps: - uses: actions/checkout@v3 with: @@ -124,7 +124,7 @@ jobs: soh.appimage readme.txt build-switch: - runs-on: ubuntu-latest + runs-on: ${{ vars.LINUX_RUNNER || 'ubuntu-latest' }} container: image: devkitpro/devkita64:latest steps: @@ -154,7 +154,7 @@ jobs: soh.nro readme.txt build-wiiu: - runs-on: ubuntu-latest + runs-on: ${{ vars.LINUX_RUNNER || 'ubuntu-latest' }} container: image: devkitpro/devkitppc:latest steps: @@ -189,7 +189,7 @@ jobs: soh.wuhb readme.txt build-windows: - runs-on: windows-latest + runs-on: ${{ vars.WINDOWS_RUNNER || 'windows-latest' }} steps: - name: Install dependencies run: |