diff --git a/.github/actions/workflow-run-job-linux/action.yml b/.github/actions/workflow-run-job-linux/action.yml index 4ee567f1b30..e8ccda22190 100644 --- a/.github/actions/workflow-run-job-linux/action.yml +++ b/.github/actions/workflow-run-job-linux/action.yml @@ -87,6 +87,8 @@ runs: ln -s "$(pwd)" "${{github.workspace}}" cd "${{github.workspace}}" + mkdir artifacts + cat <<"EOF" > ci.sh #! /usr/bin/env bash set -eo pipefail @@ -107,6 +109,26 @@ runs: echo " - Continuous Integration (CI) Overview: https://github.com/NVIDIA/cccl/blob/main/ci-overview.md" exit $exit_code fi + + # Copy any artifacts we want to preserve out of the container: + set -x + + results_dir=/artifacts + + # Finds a matching file in the repo directory and copies it to the results directory. + find_and_copy() { + filename="$1" + filepath="$(find . -name "${filename}" -print -quit)" + if [[ -z "$filepath" ]]; then + echo "${filename} does not exist in repo directory." + return 1 + fi + cp -v "$filepath" "$result_dir" + } + + find_and_copy "sccache_stats.json" || true # Ignore failures + + ls -l "$results_dir" EOF chmod +x ci.sh @@ -167,6 +189,7 @@ runs: --env "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" \ --env "GITHUB_STEP_SUMMARY=$GITHUB_STEP_SUMMARY" \ --volume "${{github.workspace}}/ci.sh:/ci.sh" \ + --volume "${{github.workspace}}/artifacts:/artifacts" \ --volume "$(host_path "$RUNNER_TEMP")/.aws:/root/.aws" \ --volume "$(dirname "$(dirname "${{github.workspace}}")"):/__w" \ -- /ci.sh @@ -179,19 +202,8 @@ runs: mkdir -p "$result_dir" touch "$result_dir/success" - - # Finds a matching file in the repo directory and copies it to the results directory. - find_and_copy() { - filename="$1" - filepath="$(find ${{github.event.repository.name}} -name "${filename}" -print -quit)" - if [[ -z "$filepath" ]]; then - echo "${filename} does not exist in repo directory." - return 1 - fi - cp -v "$filepath" "$result_dir" - } - - find_and_copy "sccache_stats.json" || true # Ignore failures + echo "ls artifacts:" && ls -l artifacts + cp -rv artifacts/* "$result_dir" echo "::group::Job artifacts" tree "$result_dir" diff --git a/ci/matrix.yaml b/ci/matrix.yaml index 5ec715fb59b..185656a523f 100644 --- a/ci/matrix.yaml +++ b/ci/matrix.yaml @@ -8,6 +8,7 @@ workflows: # - {jobs: ['test'], project: 'thrust', std: 17, ctk: 'curr', cxx: ['gcc12', 'clang16']} # override: + - {jobs: ['build'], project: 'cub', std: 'max', cxx: 'gcc'} pull_request: # Old CTK/compiler