File tree Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Original file line number Diff line number Diff line change 17
17
- cron : " 0 0 * * 0"
18
18
workflow_dispatch :
19
19
inputs :
20
- runner-os :
21
- default : ubuntu-latest
22
- type : choice
23
- options :
24
- - ubuntu-latest
25
- - macos-latest
20
+ ubuntu-latest :
21
+ type : boolean
22
+ default : true
23
+ macos-latest :
24
+ type : boolean
25
+ default : false
26
26
27
27
28
28
jobs :
29
+ get-selected-os :
30
+ runs-on : ubuntu-latest
31
+ outputs : # This needs to be set if you want to consume the output on another job
32
+ os-runners : ${{ steps.get-selected-os.outputs.os-runners }}
33
+ env :
34
+ INPUTS : ${{ toJson(inputs) }}
35
+ steps :
36
+ - name : Get selected runner OS
37
+ id : get-selected-os
38
+ run : >
39
+ echo "os-runners=$(jq -cr 'map_values(. // empty) | keys' <<< $INPUTS)" >> $GITHUB_OUTPUT
40
+
29
41
run-it-tests-job :
30
- runs-on : ${{ inputs.runner-os || 'ubuntu-latest' }}
42
+ needs : get-selected-os
43
+ strategy :
44
+ matrix :
45
+ os : ${{ fromJSON(needs.get-selected-os.outputs.os-runners) }}
46
+ runs-on : ${{ matrix.os || 'ubuntu-latest' }}
31
47
steps :
48
+ # - run: echo '${{ needs.get-selected-os.outputs.os-runners }}'
32
49
- name : Checkout
33
50
uses : actions/checkout@v2
34
51
42
59
id : setup-docker-mac
43
60
if : ${{ runner.os == 'macOS' }}
44
61
run : |
45
- brew install docker
62
+ brew update
63
+ HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 \
64
+ brew reinstall qemu
65
+ brew install docker colima
46
66
colima start
47
67
48
68
- name : Set up Project
You can’t perform that action at this time.
0 commit comments