Skip to content

Commit

Permalink
More debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Apr 22, 2024
1 parent 11f9437 commit 290575d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci-dispatch-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ defaults:

on:
workflow_call:
outputs:
# To check for success of this job, evaluate the following outputs. If any are true, the job succeeded.
linux_success:
value: ${{ jobs.linux.outputs.success }}
windows_success:
value: ${{ jobs.windows.outputs.success }}
inputs:
dispatch: {type: string, required: true}
name: {type: string, required: true}
Expand All @@ -21,14 +27,15 @@ permissions:
jobs:
linux:
name: ${{inputs.name}}
continue-on-error: ${{ ! startsWith(inputs.dispatch, 'linux') }}
outputs:
success: ${{ steps.done.outputs.SUCCESS }}
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(startsWith(inputs.dispatch, 'linux') && inputs.dummy_matrix || '[]') }}
continue-on-error: ${{ !startsWith(inputs.dispatch, 'linux') }}
runs-on: ${{inputs.runner}}
container:
options: -u root
Expand Down Expand Up @@ -72,17 +79,22 @@ jobs:
echo " - Continuous Integration (CI) Overview: https://github.com/NVIDIA/cccl/blob/main/ci-overview.md"
exit $exit_code
fi
- name: Mark job as successful
id: done
run: echo "SUCCESS=true" | tee -a ${GITHUB_OUTPUT}

windows:
name: ${{inputs.name}}
continue-on-error: ${{ ! startsWith(inputs.dispatch, 'windows') }}
outputs:
success: ${{ steps.done.outputs.SUCCESS }}
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(startsWith(inputs.dispatch, 'windows') && inputs.dummy_matrix || '[]') }}
continue-on-error: ${{ !startsWith(inputs.dispatch, 'windows') }}
runs-on: ${{inputs.runner}}
env:
SCCACHE_BUCKET: rapids-sccache-devs
Expand Down Expand Up @@ -116,3 +128,7 @@ jobs:
git fetch --all;
git checkout ${{github.ref_name}};
${{inputs.command}}"
- name: Mark job as successful
id: done
shell: bash
run: echo "SUCCESS=true" | tee -a ${GITHUB_OUTPUT}
1 change: 1 addition & 0 deletions .github/workflows/ci-dispatch-two-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ jobs:
echo "Dispatch: ${{ matrix.dispatch }}"
echo "Producers result: ${{ needs.producers.result }}"
echo "Producers outputs: ${{ toJSON(needs.producers.outputs) }}"
echo "Producers outputs.*: ${{ toJSON(needs.producers.outputs.*) }}"

0 comments on commit 290575d

Please sign in to comment.