Skip to content

Commit cda204d

Browse files
chore: update workflows to run on a configurable runner (#45)
1 parent 5ab966a commit cda204d

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
jobs:
1717
build:
1818
name: Build SDK
19-
runs-on: ubuntu-latest
19+
runs-on: ${{ vars.RUNNER && fromJSON(vars.RUNNER) || 'ubuntu-latest' }}
2020
permissions:
2121
contents: read
2222
pull-requests: write
@@ -28,7 +28,7 @@ jobs:
2828
fetch-depth: 0
2929

3030
- name: "Install uv"
31-
uses: astral-sh/setup-uv@v4
31+
uses: astral-sh/setup-uv@v3
3232
with:
3333
version: "latest"
3434
enable-cache: true
@@ -52,6 +52,7 @@ jobs:
5252

5353
- name: "Upload Coverage Report"
5454
uses: actions/upload-artifact@v4
55+
if: contains(github.server_url, 'github.com')
5556
with:
5657
name: coverage-report
5758
path: |
@@ -153,6 +154,7 @@ jobs:
153154
154155
- name: "Upload Build Artifacts"
155156
uses: actions/upload-artifact@v4
157+
if: contains(github.server_url, 'github.com')
156158
with:
157159
name: ${{ env.SDK_DIST_NAME }}
158160
path: dist/

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
analyze:
1313
name: Analyze (${{ matrix.language }})
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ vars.RUNNER && fromJSON(vars.RUNNER) || 'ubuntu-latest' }}
1515
timeout-minutes: 360
1616
permissions:
1717
security-events: write

.github/workflows/commit-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
commit-validation:
13-
runs-on: ubuntu-latest
13+
runs-on: ${{ vars.RUNNER && fromJSON(vars.RUNNER) || 'ubuntu-latest' }}
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020
integration-tests:
21-
runs-on: ubuntu-latest
21+
runs-on: ${{ vars.RUNNER && fromJSON(vars.RUNNER) || 'ubuntu-latest' }}
2222

2323
steps:
2424
- name: Checkout code

.github/workflows/reuse.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
check-reuse-compliance:
13-
runs-on: ubuntu-latest
13+
runs-on: ${{ vars.RUNNER && fromJSON(vars.RUNNER) || 'ubuntu-latest' }}
1414
steps:
1515
- uses: actions/checkout@v6
1616

0 commit comments

Comments
 (0)