Skip to content

Commit 35291ee

Browse files
authored
Make CI workflows fork-friendly (#19807)
* Make some CI conditional for forks Signed-off-by: wallentx <[email protected]> * fix conditional for build installers Signed-off-by: wallentx <[email protected]> * fix macos ARM and Linux ARM onnpre-commit Signed-off-by: wallentx <[email protected]> * Testing SSH signing * Remove conditional for checking signed commits * Use macos-15 instead of macos-latest, and use public gh linux arm * fix yaml array vs literal string --------- Signed-off-by: wallentx <[email protected]>
1 parent 18fd65d commit 35291ee

16 files changed

+18
-5
lines changed

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
build:
4949
name: Benchmarks
50-
runs-on: benchmark
50+
runs-on: ${{ github.repository_owner == 'Chia-Network' && 'benchmark' || 'ubuntu-latest' }}
5151
needs:
5252
- setup
5353
container:

.github/workflows/build-macos-installers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
name: intel
5858
bladebit-suffix: macos-x86-64.tar.gz
5959
arch-artifact-name: intel
60-
- runs-on: macos-13-arm64
60+
- runs-on: ${{ github.repository_owner == 'Chia-Network' && 'macos-13-arm64' || 'macos-15' }}
6161
name: m1
6262
bladebit-suffix: macos-arm64.tar.gz
6363
arch-artifact-name: arm

.github/workflows/check_wheel_availability.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
matrix: macos
3434
runs-on:
3535
intel: macos-13
36-
arm: macos-13-arm64
36+
arm: ${{ github.repository_owner == 'Chia-Network' && 'macos-13-arm64' || 'macos-15' }}
3737
- name: Windows
3838
matrix: windows
3939
runs-on:

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ concurrency:
2929

3030
jobs:
3131
analyze:
32+
if: github.repository_owner == 'Chia-Network'
3233
name: Analyze
3334
runs-on: ubuntu-latest
3435

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313

1414
jobs:
1515
dependency-review:
16+
if: github.repository_owner == 'Chia-Network'
1617
runs-on: ubuntu-latest
1718
steps:
1819
- name: "Checkout Repository"

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
matrix: macos
3131
runs-on:
3232
intel: macos-13
33-
arm: macos-13-arm64
33+
arm: ${{ github.repository_owner == 'Chia-Network' && 'macos-13-arm64' || 'macos-15' }}
3434
- name: Windows
3535
matrix: windows
3636
runs-on:

.github/workflows/reflow-publish-installer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ permissions:
2727

2828
jobs:
2929
publish:
30+
if: github.repository_owner == 'Chia-Network'
3031
name: Publish ${{ matrix.arch.name }} ${{ matrix.mode.name }} ${{ matrix.os.file-type.name }}
3132
runs-on: ubuntu-latest
3233
timeout-minutes: 5

.github/workflows/require-labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
types: [opened, labeled, unlabeled, synchronize]
55
jobs:
66
check-labels:
7+
if: github.repository_owner == 'Chia-Network'
78
runs-on: ubuntu-latest
89
permissions:
910
checks: write

.github/workflows/stale-issue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
stale:
8+
if: github.repository_owner == 'Chia-Network'
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/stale@v9

.github/workflows/start-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111

1212
jobs:
1313
start_release:
14+
if: github.repository_owner == 'Chia-Network'
1415
name: Starts release process in Glue API
1516
runs-on: [glue-notify]
1617
steps:

0 commit comments

Comments
 (0)