Skip to content

Commit 69c39ad

Browse files
committed
Use release workflow runners (#4765)
## Issue Addressed Build releases on self-hosted hardware to speed the process up
1 parent 6b02e85 commit 69c39ad

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/release.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,31 @@ jobs:
3838
x86_64-windows-portable]
3939
include:
4040
- arch: aarch64-unknown-linux-gnu
41-
platform: ubuntu-latest
41+
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
4242
profile: maxperf
4343
- arch: aarch64-unknown-linux-gnu-portable
44-
platform: ubuntu-latest
44+
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
4545
profile: maxperf
4646
- arch: x86_64-unknown-linux-gnu
47-
platform: ubuntu-latest
47+
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
4848
profile: maxperf
4949
- arch: x86_64-unknown-linux-gnu-portable
50-
platform: ubuntu-latest
50+
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
5151
profile: maxperf
5252
- arch: x86_64-apple-darwin
53-
platform: macos-latest
53+
runner: macos-latest
5454
profile: maxperf
5555
- arch: x86_64-apple-darwin-portable
56-
platform: macos-latest
56+
runner: macos-latest
5757
profile: maxperf
5858
- arch: x86_64-windows
59-
platform: windows-2019
59+
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "release"]') || 'windows-2019' }}
6060
profile: maxperf
6161
- arch: x86_64-windows-portable
62-
platform: windows-2019
62+
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "release"]') || 'windows-2019' }}
6363
profile: maxperf
6464

65-
runs-on: ${{ matrix.platform }}
65+
runs-on: ${{ matrix.runner }}
6666
needs: extract-version
6767
steps:
6868
- name: Checkout sources

.github/workflows/test-suite.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
release-tests-ubuntu:
5959
name: release-tests-ubuntu
6060
# Use self-hosted runners only on the sigp repo.
61-
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "large"]') || 'ubuntu-latest' }}
61+
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
6262
needs: cargo-fmt
6363
steps:
6464
- uses: actions/checkout@v3
@@ -73,7 +73,7 @@ jobs:
7373
run: make test-release
7474
release-tests-windows:
7575
name: release-tests-windows
76-
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows"]') || 'windows-2019' }}
76+
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "CI"]') || 'windows-2019' }}
7777
needs: cargo-fmt
7878
steps:
7979
- uses: actions/checkout@v3
@@ -98,7 +98,7 @@ jobs:
9898
beacon-chain-tests:
9999
name: beacon-chain-tests
100100
# Use self-hosted runners only on the sigp repo.
101-
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "large"]') || 'ubuntu-latest' }}
101+
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
102102
needs: cargo-fmt
103103
steps:
104104
- uses: actions/checkout@v3
@@ -130,7 +130,7 @@ jobs:
130130
debug-tests-ubuntu:
131131
name: debug-tests-ubuntu
132132
# Use self-hosted runners only on the sigp repo.
133-
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "large"]') || 'ubuntu-latest' }}
133+
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
134134
needs: cargo-fmt
135135
steps:
136136
- uses: actions/checkout@v3
@@ -156,7 +156,7 @@ jobs:
156156
ef-tests-ubuntu:
157157
name: ef-tests-ubuntu
158158
# Use self-hosted runners only on the sigp repo.
159-
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "small"]') || 'ubuntu-latest' }}
159+
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }}
160160
needs: cargo-fmt
161161
steps:
162162
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)