Skip to content

Commit

Permalink
debug upload artifact lists
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Dec 13, 2024
1 parent d826bb6 commit 096c152
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ before_script:
paths:
- _build_ci
- stdlib/_build
- downloaded_artifacts.txt
- available_artifacts.txt
- removed_artifacts.txt
exclude: # reduce artifact size
- _build_ci/**/.git # exclude .git directory itself as well
- _build_ci/**/.git/**/*
Expand Down
5 changes: 3 additions & 2 deletions dev/tools/cleanup-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ before=$1
after=$2

# https://unix.stackexchange.com/questions/418429/find-intersection-of-lines-in-two-files
awk 'BEGIN{while( (getline k < "'"$before"'")>0 ){a[k]}} $0 in a' "$after" |
xargs rm
awk 'BEGIN{while( (getline k < "'"$before"'")>0 ){a[k]}} $0 in a' "$after" > removed_artifacts.txt

xargs -a removed_artifacts.txt rm

for d in _build_ci stdlib/_build; do
if [ -d $d ]; then
Expand Down

0 comments on commit 096c152

Please sign in to comment.