File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,26 @@ jobs:
41
41
build-and-release :
42
42
needs : prepare
43
43
timeout-minutes : 120
44
- runs-on : ${{ matrix.os }}
44
+ runs-on : ${{ matrix.runner.label }}
45
45
46
46
strategy :
47
47
matrix :
48
- os :
49
- # self-hosted ARM macOS runner
50
- - self-hosted
51
- - ubuntu-latest
48
+ runner :
49
+ - label : self-hosted
50
+ os : macos
51
+ - label : [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
52
+ os : ubuntu
53
+ - label : [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
54
+ os : ubuntu
55
+ # label: [self-hosted]
56
+ # include:
57
+ # - label: runs-on
58
+ # runner: 16cpu-linux-x64
59
+ # run-id: "${{ github.run_id }}"
52
60
53
61
steps :
54
62
- name : Free Disk Space (Ubuntu)
55
- if : matrix.os == 'ubuntu-latest '
63
+ if : matrix.runner. os == 'ubuntu'
56
64
uses : jlumbroso/free-disk-space@main
57
65
with :
58
66
tool-cache : true
@@ -66,13 +74,13 @@ jobs:
66
74
- uses : actions/checkout@v4
67
75
68
76
- name : Install ninja and riscv-tools
69
- if : matrix.os == 'ubuntu-latest '
77
+ if : matrix.runner. os == 'ubuntu'
70
78
run : |
71
79
sudo apt update
72
80
sudo apt-get -y install ninja-build gcc-riscv64-unknown-elf
73
81
74
82
- name : Install ninja and riscv-tools
75
- if : contains( matrix.os, 'macos')
83
+ if : matrix.runner.os == 'macos'
76
84
run : |
77
85
brew install ninja
78
86
brew tap riscv-software-src/riscv
You can’t perform that action at this time.
0 commit comments