Skip to content

Commit

Permalink
GHA: add self-hosted step for windows jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kanaka committed Aug 22, 2024
1 parent 7800635 commit ac306e5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
if: ${{ github.event.inputs.self-hosted == 'yes' }}
run: |
export ${{ matrix.IMPL }}
if [ "${NO_SELF_HOST}" ]; then
if [ -n "${NO_SELF_HOST}" ]; then
echo "Skipping self-host for ${IMPL} due to NO_SELF_HOST variable"
else
DO_SELF_HOST=1 ./ci.sh test ${IMPL}
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
if: ${{ github.event.inputs.self-hosted == 'yes' }}
run: |
export ${{ matrix.IMPL }}
if [ "${NO_SELF_HOST}" ]; then
if [ -n "${NO_SELF_HOST}" ]; then
echo "Skipping self-host for ${IMPL} due to NO_SELF_HOST variable"
else
DO_SELF_HOST=1 ./ci.sh test ${IMPL}
Expand Down Expand Up @@ -187,6 +187,18 @@ jobs:
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Self-hosted Tests
if: ${{ github.event.inputs.self-hosted == 'yes' }}
shell: wsl-bash {0}
run: |
export ${{ matrix.IMPL }}
if [ -n "${NO_SELF_HOST}" ]; then
echo "Skipping self-host for ${IMPL} due to NO_SELF_HOST variable"
else
DO_SELF_HOST=1 ./ci.sh test ${IMPL}
# Check that self-hosted mode really ran
[ "`grep -a "mal-user>" test-mal-*${IMPL}.debug | wc -l`" -gt 800 ]
fi
- name: Print debug log
if: failure()
run: cat *.debug
Expand Down

0 comments on commit ac306e5

Please sign in to comment.