Skip to content

Commit 5f70134

Browse files
committed
Refactor check job to allow configuring CI host runner
1 parent 012bed7 commit 5f70134

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727
jobs:
2828
check:
2929
name: Type checking (${{ matrix.target.name }})
30-
runs-on: ubuntu-latest
30+
runs-on: ${{ matrix.target.host }}
3131
if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) || github.event_name == 'push' }}
3232
strategy:
3333
matrix:
@@ -36,14 +36,19 @@ jobs:
3636
# triple: x86_64-pc-windows-gnu
3737
- name: Linux
3838
triple: x86_64-unknown-linux-gnu
39+
host: ubuntu-latest
3940
- name: Android
4041
triple: aarch64-linux-android
42+
host: ubuntu-latest
4143
- name: macOS
4244
triple: x86_64-apple-darwin
45+
host: macos-latest
4346
- name: iOS
4447
triple: aarch64-apple-ios
48+
host: macos-latest
4549
- name: FreeBSD
4650
triple: x86_64-unknown-freebsd
51+
host: ubuntu-latest
4752

4853
steps:
4954
- name: Checkout sources

0 commit comments

Comments
 (0)