-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.17 KB
/
ci_self_hosted_macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Self-hosted CI on macOS
on:
pull_request:
types: [opened, reopened, synchronize]
branches: [ "main" ]
push:
types: [opened, reopened, synchronize]
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
constants:
name: Constants
if: startsWith(github.head_ref, 'check_by_SHR')
runs-on: ubuntu-22.04
outputs:
matrix-for-self-hosted-macos: ${{ steps.set-matrix-for-self-hosted-macos.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- id: set-matrix-for-self-hosted-macos
run: |
json=$(cat ${{ github.workspace }}/.github/actions/matrix_for_self_hosted_macos.yml| ruby -ryaml -rjson -e 'puts YAML.load(STDIN).to_json')
echo "matrix=${json}" >> $GITHUB_OUTPUT
test_self_hosted_matrix:
strategy:
matrix:
arch: [X64, ARM64]
name: Test Matrix (Selfhosted CI on macOS)
needs: constants
uses: ./.github/workflows/reusable_ci_for_self_hosted_runner_macos.yml
with:
matrix: ${{ needs.constants.outputs.matrix-for-self-hosted-macos }}
arch: ${{ matrix.arch }}