Skip to content

Commit

Permalink
ci: run Github Actions only in anza-xyz/agave (#3070)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau authored Oct 4, 2024
1 parent ae5919e commit 78f8312
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/add-team-to-ghsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
add-team-to-ghsa:
if: github.repository == 'anza-xyz/agave'
runs-on: ubuntu-24.04
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
benchmark:
if: github.repository == 'anza-xyz/agave'
name: benchmark
runs-on: benchmark
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env:

jobs:
clippy-nightly:
if: github.repository == 'anza-xyz/agave'
strategy:
matrix:
os:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/client-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:

jobs:
android:
if: github.repository == 'anza-xyz/agave'
strategy:
matrix:
os:
Expand All @@ -44,6 +45,7 @@ jobs:
run: ./cargo stable ndk --target ${{ matrix.target }} build -p solana-client

ios:
if: github.repository == 'anza-xyz/agave'
strategy:
matrix:
os:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/crate-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

jobs:
check:
if: github.repository == 'anza-xyz/agave'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

jobs:
check:
if: github.repository == 'anza-xyz/agave'
outputs:
continue: ${{ steps.check.outputs.need_to_build }}
runs-on: ubuntu-20.04
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/downstream-project-spl-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ on:

jobs:
main:
# As this is a cron job, it is better to avoid running it for all the forks.
# They are unlike to benefit from these executions, and they could easily
# eat up all the minutes GitHub allocation to free accounts.
if: >
github.event_name != 'schedule'
|| github.repository == 'solana-labs/solana'
if: github.repository == 'anza-xyz/agave'
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/downstream-project-spl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ env:

jobs:
check:
if: github.repository == 'anza-xyz/agave'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
trigger-buildkite-pipeline:
if: github.repository == 'anza-xyz/agave'
runs-on: ubuntu-latest
steps:
- name: Trigger a Buildkite Build
Expand All @@ -20,6 +21,7 @@ jobs:
message: ":github: Triggered from a GitHub Action"

draft-release:
if: github.repository == 'anza-xyz/agave'
runs-on: ubuntu-latest
steps:
- name: Create Release
Expand All @@ -38,6 +40,7 @@ jobs:
})
version-bump:
if: github.repository == 'anza-xyz/agave'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down

0 comments on commit 78f8312

Please sign in to comment.