Skip to content

Commit 9a3674f

Browse files
committed
Fix release CI for self-hosted runners (#4770)
## Issue Addressed NA ## Proposed Changes Disables some commands for self-hosted runners to prevent failures. ## Additional Info NA
1 parent dcd69df commit 9a3674f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ env:
1414
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
1515
REPO_NAME: ${{ github.repository_owner }}/lighthouse
1616
IMAGE_NAME: ${{ github.repository_owner }}/lighthouse
17+
# Enable self-hosted runners for the sigp repo only.
18+
SELF_HOSTED_RUNNERS: ${{ github.repository == 'sigp/lighthouse' }}
1719

1820
jobs:
1921
extract-version:
@@ -68,14 +70,15 @@ jobs:
6870
- name: Checkout sources
6971
uses: actions/checkout@v3
7072
- name: Get latest version of stable Rust
73+
if: env.SELF_HOSTED_RUNNERS == 'false'
7174
run: rustup update stable
7275

7376
# ==============================
7477
# Windows dependencies
7578
# ==============================
7679

7780
- uses: KyleMayes/install-llvm-action@v1
78-
if: startsWith(matrix.arch, 'x86_64-windows')
81+
if: env.SELF_HOSTED_RUNNERS == 'false' && startsWith(matrix.arch, 'x86_64-windows')
7982
with:
8083
version: "15.0"
8184
directory: ${{ runner.temp }}/llvm

0 commit comments

Comments
 (0)