Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/rocshmem-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: rocSHMEM CI

on:
pull_request:
pull_request_target:
branches: [develop]
types: [opened, synchronize, reopened, ready_for_review]
schedule:
Expand All @@ -23,11 +23,14 @@ concurrency:
group: rocshmem-hygon-github-nmz1-nmz2
# A new PR commit supersedes the old validation run. Scheduled/manual full
# runs remain serialized and are never cancelled by another invocation.
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
cancel-in-progress: ${{ github.event_name == 'pull_request_target' }}

jobs:
build-and-test:
name: Test (${{ github.event_name == 'schedule' && 'full' || 'standard' }})
if: >-
github.event_name != 'pull_request_target' ||
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.pull_request.author_association)
runs-on: [self-hosted, Linux, X64, ci, nmz1, bw1100]
timeout-minutes: 360
env:
Expand All @@ -54,6 +57,10 @@ jobs:
- name: Checkout source
uses: actions/checkout@v4
with:
ref: >-
${{ github.event_name == 'pull_request_target' &&
format('refs/pull/{0}/merge', github.event.pull_request.number) ||
github.ref }}
persist-credentials: false
submodules: recursive

Expand Down
Loading