Skip to content

Commit 467a4d8

Browse files
committed
Add runs-on runner config
1 parent 9b29b66 commit 467a4d8

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/build_and_release.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,26 @@ jobs:
4141
build-and-release:
4242
needs: prepare
4343
timeout-minutes: 120
44-
runs-on: ${{ matrix.os }}
44+
runs-on: ${{ matrix.runner.label }}
4545

4646
strategy:
4747
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 }}"
5260

5361
steps:
5462
- name: Free Disk Space (Ubuntu)
55-
if: matrix.os == 'ubuntu-latest'
63+
if: matrix.runner.os == 'ubuntu'
5664
uses: jlumbroso/free-disk-space@main
5765
with:
5866
tool-cache: true
@@ -66,13 +74,13 @@ jobs:
6674
- uses: actions/checkout@v4
6775

6876
- name: Install ninja and riscv-tools
69-
if: matrix.os == 'ubuntu-latest'
77+
if: matrix.runner.os == 'ubuntu'
7078
run: |
7179
sudo apt update
7280
sudo apt-get -y install ninja-build gcc-riscv64-unknown-elf
7381
7482
- name: Install ninja and riscv-tools
75-
if: contains(matrix.os, 'macos')
83+
if: matrix.runner.os == 'macos'
7684
run: |
7785
brew install ninja
7886
brew tap riscv-software-src/riscv

0 commit comments

Comments
 (0)