Skip to content

Commit

Permalink
Option to specify ExoBLAS ref in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirDroubi committed Mar 9, 2024
1 parent f28b117 commit 44db9ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ on:
pull_request:

jobs:
call_test_ExoBLAS:
uses: ./.github/workflows/test_ExoBLAS.yml
with:
exo-ref: main
steps:
- uses: ./.github/workflows/test_ExoBLAS.yml
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
with:
exo-ref: main
exo-blas-ref: main
- uses: ./.github/workflows/test_ExoBLAS.yml
if: github.event_name == 'pull_request'
with:
exo-ref: main
exo-blas-ref: ${{ github.event.pull_request.merge_commit_sha }}
5 changes: 5 additions & 0 deletions .github/workflows/test_ExoBLAS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
exo-ref:
required: true
type: string
exo-blas-ref:
required: true
type: string

jobs:
test_ExoBLAS:
Expand Down Expand Up @@ -56,6 +59,8 @@ jobs:
- name: Checkout ExoBLAS repo
uses: actions/checkout@v4
with:
repository: exo-lang/ExoBLAS
ref: ${{ inputs.exo-blas-ref }}
submodules: recursive
path: ExoBLAS

Expand Down

0 comments on commit 44db9ff

Please sign in to comment.