-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (43 loc) · 1.36 KB
/
test-self-hosted.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
41
42
43
44
45
46
47
48
49
name: Test Self-Hosted Runner
on:
push:
workflow_dispatch:
jobs:
setup:
runs-on: self-hosted
outputs:
matrix-all-projects: ${{ steps.all-projects.outputs.matrix }}
matrix-modified-projects: ${{ steps.modified-projects.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get all projects
id: all-projects
run: |
python3 scripts/actions/all_projects.py
echo "matrix=$(cat all_projects.json)" >> $GITHUB_OUTPUT
- name: Get modified projects
id: modified-projects
run: |
python3 scripts/actions/modified_projects.py ${{ github.base_ref }}
echo "matrix=$(cat modified_projects.json)" >> $GITHUB_OUTPUT
build-all-projects:
needs: setup
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.setup.outputs.matrix-all-projects) }}
uses: ./.github/workflows/reusable-build-project.yml
with:
project: ${{ matrix.project }}
platform: ${{ matrix.platform }}
build-modified-projects:
needs: setup
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.setup.outputs.matrix-modified-projects) }}
uses: ./.github/workflows/reusable-build-project.yml
with:
project: ${{ matrix.project }}
platform: ${{ matrix.platform }}