Skip to content

Commit 18abf23

Browse files
committed
PR comments
1 parent 9487d74 commit 18abf23

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

.github/workflows/build_template.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ jobs:
424424
if: ${{ steps.build.outcome == 'success' }}
425425
shell: bash
426426
run: |
427-
if find cache-staging -type f -name '*.ltar' -print -quit | grep -q .; then
427+
if find cache-staging -type f -name '*.ltar' -print -quit | grep -q .;
428428
echo "has_files=true" >> "$GITHUB_OUTPUT"
429429
else
430430
echo "has_files=false" >> "$GITHUB_OUTPUT"
@@ -437,17 +437,6 @@ jobs:
437437
name: cache-staging
438438
path: cache-staging/
439439

440-
# - name: upload artifact containing contents of pr-branch
441-
# # TODO: We should probably only upload the artifacts needed by the cache
442-
# uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
443-
# with:
444-
# name: mathlib4_artifact
445-
# include-hidden-files: true
446-
# # we exclude .git since there may be secrets in there
447-
# path: |
448-
# pr-branch/
449-
# !pr-branch/.git/
450-
451440
- name: Check if building Archive or Counterexamples failed
452441
if: steps.archive.outcome == 'failure' || steps.counterexamples.outcome == 'failure'
453442
run: |
@@ -639,7 +628,7 @@ jobs:
639628
echo "CACHE_BIN=$CACHE_BIN" >> "$GITHUB_ENV"
640629
641630
- name: Download cache staging artifact
642-
uses: actions/download-artifact@v4
631+
uses: actions/download-artifact@@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
643632
with:
644633
name: cache-staging
645634
path: cache-staging

Cache/Requests.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ end Put
561561
section Stage
562562
def copyCmd : String := if System.Platform.isWindows then "COPY" else "cp"
563563

564-
/-- Moves cached files to a directory, intended for 'staging' -/
564+
/-- Copies cached files to a directory, intended for 'staging' -/
565565
def stageFiles
566566
(destinationPath : String) (fileNames : Array String)
567567
: IO Unit := do
@@ -570,7 +570,7 @@ def stageFiles
570570
IO.FS.createDirAll destinationPath
571571
let paths := fileNames.map (fun (f : String) => s!"{(IO.CACHEDIR / f)}")
572572
let args := paths ++ #[destinationPath]
573-
IO.println s!"Moving to {size} file(s) to {destinationPath}"
573+
IO.println s!"Copying {size} file(s) to {destinationPath}"
574574
discard <| IO.runCmd copyCmd args
575575
else IO.println "No files to stage"
576576

0 commit comments

Comments
 (0)