Skip to content

Commit

Permalink
[DO NOT MERGE] Testing sccache
Browse files Browse the repository at this point in the history
[skip-rapids][skip-matx][skip-vdc][skip-docs]
  • Loading branch information
alliepiper committed Jan 30, 2025
1 parent 73db01e commit 81f6f64
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/actions/workflow-run-job-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,27 @@ runs:
gpu_request+=(--gpus "device=${NVIDIA_VISIBLE_DEVICES}")
fi
mkdir artifacts
cat <<EOF > copy_artifacts.sh
#! /usr/bin/env bash
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
EOF
chmod +x copy_artifacts.sh
host_path() {
sed "s@/__w@$(dirname "$(dirname "${{github.workspace}}")")@" <<< "$1"
}
Expand Down Expand Up @@ -167,6 +188,8 @@ runs:
--env "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" \
--env "GITHUB_STEP_SUMMARY=$GITHUB_STEP_SUMMARY" \
--volume "${{github.workspace}}/ci.sh:/ci.sh" \
--volume "${{github.workspace}}/copy_artifacts.sh:/copy_artifacts.sh" \
--volume "${{github.workspace}}/artifacts:/artifacts" \
--volume "$(host_path "$RUNNER_TEMP")/.aws:/root/.aws" \
--volume "$(dirname "$(dirname "${{github.workspace}}")"):/__w" \
-- /ci.sh
Expand All @@ -179,19 +202,7 @@ 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
cp -rv artifacts/* "$result_dir"
echo "::group::Job artifacts"
tree "$result_dir"
Expand Down
1 change: 1 addition & 0 deletions ci/matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81f6f64

Please sign in to comment.