|
82 | 82 | echo "[host] github.workspace: ${{github.workspace}}" |
83 | 83 | echo "[container] GITHUB_WORKSPACE: ${GITHUB_WORKSPACE:-}" |
84 | 84 | echo "[container] PWD: $(pwd)" |
85 | | - echo "[container] user: $(whoami) ($(id -u):$(id -g))" |
86 | 85 |
|
87 | 86 | # Necessary because we're doing docker-outside-of-docker: |
88 | 87 | # Make a symlink in the container that matches the host's ${{github.workspace}}, so that way `$(pwd)` |
|
91 | 90 | ln -s "$(pwd)" "${{github.workspace}}" |
92 | 91 | cd "${{github.workspace}}" |
93 | 92 |
|
| 93 | + echo "[container] new PWD: $(pwd)" |
| 94 | +
|
94 | 95 | cat <<"EOF" > ci.sh |
95 | 96 | #! /usr/bin/env bash |
96 | 97 | set -eo pipefail |
@@ -174,7 +175,8 @@ runs: |
174 | 175 |
|
175 | 176 | extra_launch_args+=( |
176 | 177 | --env "PARALLEL_LEVEL=$((CPUS * 4))" |
177 | | - --env "SCCACHE_NO_CACHE=true" |
| 178 | + # --env "SCCACHE_RECACHE=1" |
| 179 | + # --env "SCCACHE_NO_CACHE=1" |
178 | 180 | --env "SCCACHE_S3_KEY_PREFIX=cccl-sccache-dist-test" |
179 | 181 | --volume "$(host_path "$RUNNER_TEMP")/.config:/root/.config:ro" |
180 | 182 | --volume "$(host_path "$RUNNER_TEMP")/bin/sccache:/usr/bin/sccache:ro" |
@@ -221,15 +223,13 @@ runs: |
221 | 223 |
|
222 | 224 | touch "$result_dir/success" |
223 | 225 |
|
224 | | - echo "repo: ${{github.workspace}}/${{github.event.repository.name}}" |
225 | | - echo "pwd: $(pwd)" |
226 | 226 | echo "dirs:" |
227 | 227 | find . -mindepth 1 -maxdepth 1 -type d |
228 | 228 |
|
229 | 229 | # Finds a matching file in the repo directory and copies it to the results directory. |
230 | 230 | find_and_copy() { |
231 | 231 | filename="$1" |
232 | | - filepath="$(find "${{github.workspace}}/${{github.event.repository.name}}" -name "${filename}" -print -quit)" |
| 232 | + filepath="$(find . -name "${filename}" -print -quit)" |
233 | 233 | if [[ -z "$filepath" ]]; then |
234 | 234 | echo "${filename} does not exist in repo directory." |
235 | 235 | return 1 |
|
0 commit comments