Skip to content

Commit

Permalink
GHA: add self-hosted workflow input.
Browse files Browse the repository at this point in the history
  • Loading branch information
kanaka committed Aug 8, 2024
1 parent f5d6d0e commit ba01590
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
description: 'Space separated list of impls to test (or all)'
required: true
default: 'all'
self-hosted:
description: 'Include self-hosted tests'
required: true
default: 'no'
options: ['yes', 'no']

jobs:
get-matrix:
Expand Down Expand Up @@ -72,6 +77,11 @@ jobs:
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Self-hosted Tests
if: ${{ github.event.inputs.self-hosted == 'yes' }}
run: |
export ${{ matrix.IMPL }}
DO_SELF_HOST=1 ./ci.sh test ${IMPL}
- name: Archive logs and debug output
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -105,6 +115,11 @@ jobs:
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Self-hosted Tests
if: ${{ github.event.inputs.self-hosted == 'yes' }}
run: |
export ${{ matrix.IMPL }}
DO_SELF_HOST=1 ./ci.sh test ${IMPL}
- name: Archive logs and debug output
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit ba01590

Please sign in to comment.