Skip to content

Commit

Permalink
turn off SCCACHE_NO_CACHE
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Nov 1, 2024
1 parent 1f070e3 commit 7989b2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ launch_docker() {
local -;
set -euo pipefail

set -x

inline_vars() {
cat - \
`# inline local workspace folder` \
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/workflow-run-job-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ runs:
echo "[host] github.workspace: ${{github.workspace}}"
echo "[container] GITHUB_WORKSPACE: ${GITHUB_WORKSPACE:-}"
echo "[container] PWD: $(pwd)"
echo "[container] user: $(whoami) ($(id -u):$(id -g))"
# Necessary because we're doing docker-outside-of-docker:
# Make a symlink in the container that matches the host's ${{github.workspace}}, so that way `$(pwd)`
Expand All @@ -91,6 +90,8 @@ runs:
ln -s "$(pwd)" "${{github.workspace}}"
cd "${{github.workspace}}"
echo "[container] new PWD: $(pwd)"
cat <<"EOF" > ci.sh
#! /usr/bin/env bash
set -eo pipefail
Expand Down Expand Up @@ -174,7 +175,8 @@ runs:
extra_launch_args+=(
--env "PARALLEL_LEVEL=$((CPUS * 4))"
--env "SCCACHE_NO_CACHE=true"
# --env "SCCACHE_RECACHE=1"
# --env "SCCACHE_NO_CACHE=1"
--env "SCCACHE_S3_KEY_PREFIX=cccl-sccache-dist-test"
--volume "$(host_path "$RUNNER_TEMP")/.config:/root/.config:ro"
--volume "$(host_path "$RUNNER_TEMP")/bin/sccache:/usr/bin/sccache:ro"
Expand Down Expand Up @@ -221,15 +223,13 @@ runs:
touch "$result_dir/success"
echo "repo: ${{github.workspace}}/${{github.event.repository.name}}"
echo "pwd: $(pwd)"
echo "dirs:"
find . -mindepth 1 -maxdepth 1 -type d
# Finds a matching file in the repo directory and copies it to the results directory.
find_and_copy() {
filename="$1"
filepath="$(find "${{github.workspace}}/${{github.event.repository.name}}" -name "${filename}" -print -quit)"
filepath="$(find . -name "${filename}" -print -quit)"
if [[ -z "$filepath" ]]; then
echo "${filename} does not exist in repo directory."
return 1
Expand Down

0 comments on commit 7989b2e

Please sign in to comment.