Skip to content

Commit

Permalink
Refactor check job to allow configuring CI host runner
Browse files Browse the repository at this point in the history
  • Loading branch information
complexspaces committed Mar 15, 2022
1 parent 7e318b5 commit 9611a5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
jobs:
check:
name: Type checking (${{ matrix.target.name }})
runs-on: ubuntu-latest
runs-on: ${{ matrix.target.host }}
if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) || github.event_name == 'push' }}
strategy:
matrix:
Expand All @@ -36,14 +36,19 @@ jobs:
# triple: x86_64-pc-windows-gnu
- name: Linux
triple: x86_64-unknown-linux-gnu
host: ubuntu-latest
- name: Android
triple: aarch64-linux-android
host: ubuntu-latest
- name: macOS
triple: x86_64-apple-darwin
host: macos-latest
- name: iOS
triple: aarch64-apple-ios
host: macos-latest
- name: FreeBSD
triple: x86_64-unknown-freebsd
host: ubuntu-latest

steps:
- name: Checkout sources
Expand Down

0 comments on commit 9611a5e

Please sign in to comment.