Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Nov 7, 2024
1 parent 20366bd commit 47faf16
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cmake-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
- cron: '12 14 * * 3'

jobs:
globus-test:
uses: ./.github/workflows/globus-test.yml
secrets: inherit
with:
machine: "perlmutter"

test-build:
runs-on: ubuntu-latest

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/globus-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Globus-Systems

on:
push:
workflow_call:
inputs:
machine:
required: true

concurrency:
group: systems-${{ github.event.repository.name }}
Expand All @@ -11,9 +14,6 @@ jobs:
globus-test:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
machine: ["perlmutter"]

steps:

Expand Down Expand Up @@ -43,9 +43,9 @@ jobs:
run: |
export GLOBUS_COMPUTE_CLIENT_ID="$GLOBUS_ID"
export GLOBUS_COMPUTE_CLIENT_SECRET="$GLOBUS_SECRET"
if [ ${{ matrix.machine }} == "perlmutter" ]; then TARGET_ENDPOINT=0dd4499a-8d76-4977-bae9-841e4bb2f616; fi
if [ ${{ matrix.machine }} == "frontier" ]; then TARGET_ENDPOINT=d625c6cf-de7a-4228-ac44-56247a642fe0; fi
python run-globus.py ${{ matrix.machine }} ${{ github.event.repository.name }} ${{ github.sha }} $TARGET_ENDPOINT
if [ ${{ inputs.machine }} == "perlmutter" ]; then TARGET_ENDPOINT=0dd4499a-8d76-4977-bae9-841e4bb2f616; fi
if [ ${{ inputs.machine }} == "frontier" ]; then TARGET_ENDPOINT=d625c6cf-de7a-4228-ac44-56247a642fe0; fi
python run-globus.py ${{ inputs.machine }} ${{ github.event.repository.name }} ${{ github.sha }} $TARGET_ENDPOINT
- name: print build log
working-directory: ${{ github.event.repository.name }}/.github/workflows
Expand Down

0 comments on commit 47faf16

Please sign in to comment.