4242 - name : GitHub API Request
4343 if : steps.check.outputs.triggered == 'true'
4444 id : request
45- uses : octokit/request-action@v2.1.7
45+ uses : octokit/request-action@v2.4.0
4646 with :
4747 route : ${{github.event.issue.pull_request.url}}
4848 env :
5252 # just like any other third-party service
5353 - name : Create PR status
5454 if : steps.check.outputs.triggered == 'true'
55- uses : guibranco/github-status-action-v2@v1.1.7
55+ uses : guibranco/github-status-action-v2@v1.1.14
5656 with :
5757 authToken : ${{secrets.GITHUB_TOKEN}}
5858 context : " ornl-sulfur CI ${{ matrix.jobname }}"
9191
9292 - name : Report PR status
9393 if : always() && steps.check.outputs.triggered == 'true'
94- uses : guibranco/github-status-action-v2@v1.1.7
94+ uses : guibranco/github-status-action-v2@v1.1.14
9595 with :
9696 authToken : ${{secrets.GITHUB_TOKEN}}
9797 context : " ornl-sulfur CI ${{matrix.jobname}}"
@@ -141,7 +141,7 @@ jobs:
141141 - name : GitHub API Request
142142 if : steps.check.outputs.triggered == 'true'
143143 id : request
144- uses : octokit/request-action@v2.1.7
144+ uses : octokit/request-action@v2.4.0
145145 with :
146146 route : ${{github.event.issue.pull_request.url}}
147147 env :
@@ -151,7 +151,7 @@ jobs:
151151 # just like any other third-party service
152152 - name : Create PR status
153153 if : steps.check.outputs.triggered == 'true'
154- uses : guibranco/github-status-action-v2@v1.1.7
154+ uses : guibranco/github-status-action-v2@v1.1.14
155155 with :
156156 authToken : ${{secrets.GITHUB_TOKEN}}
157157 context : " ornl-sulfur CI ${{ matrix.jobname }}"
@@ -190,7 +190,7 @@ jobs:
190190
191191 - name : Report PR status
192192 if : always() && steps.check.outputs.triggered == 'true'
193- uses : guibranco/github-status-action-v2@v1.1.7
193+ uses : guibranco/github-status-action-v2@v1.1.14
194194 with :
195195 authToken : ${{secrets.GITHUB_TOKEN}}
196196 context : " ornl-sulfur CI ${{matrix.jobname}}"
@@ -237,7 +237,7 @@ jobs:
237237 - name : GitHub API Request
238238 if : steps.check.outputs.triggered == 'true'
239239 id : request
240- uses : octokit/request-action@v2.1.7
240+ uses : octokit/request-action@v2.4.0
241241 with :
242242 route : ${{github.event.issue.pull_request.url}}
243243 env :
@@ -247,7 +247,7 @@ jobs:
247247 # just like any other third-party service
248248 - name : Create PR status
249249 if : steps.check.outputs.triggered == 'true'
250- uses : guibranco/github-status-action-v2@v1.1.7
250+ uses : guibranco/github-status-action-v2@v1.1.14
251251 with :
252252 authToken : ${{secrets.GITHUB_TOKEN}}
253253 context : " ornl-nitrogen CI ${{matrix.jobname}}"
@@ -286,10 +286,107 @@ jobs:
286286
287287 - name : Report PR status
288288 if : always() && steps.check.outputs.triggered == 'true'
289- uses : guibranco/github-status-action-v2@v1.1.7
289+ uses : guibranco/github-status-action-v2@v1.1.14
290290 with :
291291 authToken : ${{secrets.GITHUB_TOKEN}}
292292 context : " ornl-nitrogen CI ${{matrix.jobname}}"
293293 state : ${{job.status}}
294294 sha : ${{fromJson(steps.request.outputs.data).head.sha}}
295295 target_url : https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
296+
297+ nitrogen2-amdclang :
298+ if : |
299+ github.repository_owner == 'QMCPACK' &&
300+ github.event.issue.pull_request &&
301+ ( startsWith(github.event.comment.body, 'Test this please') ||
302+ startsWith(github.event.comment.body, 'Start testing in-house') )
303+
304+ runs-on : [self-hosted, Linux, X64, ornl-nitrogen2]
305+
306+ env :
307+ GH_JOBNAME : ${{matrix.jobname}}
308+ GH_OS : Linux
309+ strategy :
310+ fail-fast : false
311+ matrix :
312+ jobname :
313+ [
314+ MI210-AMDClang-NoMPI-Offload-Real-Mixed,
315+ MI210-AMDClang-NoMPI-Offload-Real,
316+ MI210-AMDClang-NoMPI-Offload-Complex-Mixed,
317+ MI210-AMDClang-NoMPI-Offload-Complex,
318+ ]
319+
320+ steps :
321+ - name : Verify actor
322+ # Only trigger for certain "actors" (those commenting the PR, not the PR originator)
323+ # this is in-line with the current workflow
324+ env :
325+ ACTOR_TOKEN : ${{secrets.TOKENIZER}}${{github.actor}}${{secrets.TOKENIZER}}
326+ SECRET_ACTORS : ${{secrets.CI_GPU_ACTORS}}
327+ if : contains(env.SECRET_ACTORS, env.ACTOR_TOKEN)
328+ id : check
329+ run : |
330+ echo "triggered=true" >> $GITHUB_OUTPUT
331+
332+ # Request repo info, required since issue_comment doesn't point at PR commit, but develop
333+ - name : GitHub API Request
334+ if : steps.check.outputs.triggered == 'true'
335+ id : request
336+ uses : octokit/request-action@v2.4.0
337+ with :
338+ route : ${{github.event.issue.pull_request.url}}
339+ env :
340+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
341+
342+ # Create a separate PR status pointing at GitHub Actions tab URL
343+ # just like any other third-party service
344+ - name : Create PR status
345+ if : steps.check.outputs.triggered == 'true'
346+ uses : guibranco/github-status-action-v2@v1.1.14
347+ with :
348+ authToken : ${{secrets.GITHUB_TOKEN}}
349+ context : " ornl-nitrogen2 CI ${{matrix.jobname}}"
350+ state : " pending"
351+ sha : ${{fromJson(steps.request.outputs.data).head.sha}}
352+ target_url : https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
353+
354+ - name : Get PR information
355+ if : steps.check.outputs.triggered == 'true'
356+ id : pr_data
357+ run : |
358+ echo "branch=${{ fromJson(steps.request.outputs.data).head.ref }}" >> $GITHUB_OUTPUT
359+ echo "repo_name=${{ fromJson(steps.request.outputs.data).head.repo.full_name }}" >> $GITHUB_OUTPUT
360+ echo "repo_clone_url=${{ fromJson(steps.request.outputs.data).head.repo.clone_url }}" >> $GITHUB_OUTPUT
361+ echo "repo_ssh_url=${{ fromJson(steps.request.outputs.data).head.repo.ssh_url }}" >> $GITHUB_OUTPUT
362+
363+ - name : Checkout PR branch
364+ if : steps.check.outputs.triggered == 'true'
365+ uses : actions/checkout@v4
366+ with :
367+ token : ${{secrets.GITHUB_TOKEN}}
368+ repository : ${{fromJson(steps.request.outputs.data).head.repo.full_name}}
369+ ref : ${{steps.pr_data.outputs.branch}}
370+
371+ - name : Configure
372+ if : steps.check.outputs.triggered == 'true'
373+ run : tests/test_automation/github-actions/ci/run_step_ornl-nitrogen2.sh configure
374+
375+ - name : Build
376+ if : steps.check.outputs.triggered == 'true'
377+ run : tests/test_automation/github-actions/ci/run_step_ornl-nitrogen2.sh build
378+
379+ - name : Test
380+ if : steps.check.outputs.triggered == 'true'
381+ run : tests/test_automation/github-actions/ci/run_step_ornl-nitrogen2.sh test
382+
383+ - name : Report PR status
384+ if : always() && steps.check.outputs.triggered == 'true'
385+ uses : guibranco/github-status-action-v2@v1.1.14
386+ with :
387+ authToken : ${{secrets.GITHUB_TOKEN}}
388+ context : " ornl-nitrogen2 CI ${{matrix.jobname}}"
389+ state : ${{job.status}}
390+ sha : ${{fromJson(steps.request.outputs.data).head.sha}}
391+ target_url : https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
392+
0 commit comments