Skip to content

Commit

Permalink
Only run build-and-test workflow in the rr-debugger/rr repository.
Browse files Browse the repository at this point in the history
Build-and-test won't actually work in forks since they don't have
access to rr-debugger's self-hosted runners.
  • Loading branch information
rocallahan committed Jun 3, 2024
1 parent 7f5c319 commit 676773b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
setup:
name: Setup runners
runs-on: ubuntu-latest
if: github.repository == 'rr-debugger/rr'
steps:
- id: generate
name: Generate runner ID
Expand All @@ -24,13 +25,15 @@ jobs:
x86-64:
uses: ./.github/workflows/build-and-test.yml
needs: setup
if: github.repository == 'rr-debugger/rr'
with:
runner_id: ${{ needs.setup.outputs.RUNNER_ID }}_x86_64
architecture: x86_64

arm64:
uses: ./.github/workflows/build-and-test.yml
needs: setup
if: github.repository == 'rr-debugger/rr'
with:
runner_id: ${{ needs.setup.outputs.RUNNER_ID }}_arm64
architecture: arm64
Expand All @@ -42,7 +45,7 @@ jobs:
- setup
- x86-64
- arm64
if: ${{ always() }}
if: ${{ always() && github.repository == 'rr-debugger/rr' }}
steps:
- name: "Stop runners"
run: |2-
Expand Down

0 comments on commit 676773b

Please sign in to comment.