Skip to content

Commit 9de3516

Browse files
committed
fixup! fixup! fixup! Separate apt cache location
1 parent 0fef94e commit 9de3516

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
if [ -d ~/apt-cache/archives ]; then sudo mv ~/apt-cache/archives/* /var/cache/apt/archives/; fi
4646
rm -r ~/apt-cache
4747
fi
48+
touch ~/apt-cache-timestamp
4849
4950
- uses: actions/checkout@v4
5051
- uses: ruby/setup-ruby@v1
@@ -87,8 +88,8 @@ jobs:
8788
run: |
8889
# TODO WIP (should only export new files)
8990
mkdir ~/apt-cache ~/apt-cache/lists ~/apt-cache/archives
90-
sudo ln -t ~/apt-cache/lists /var/lib/apt/lists/*
91-
sudo ln -t ~/apt-cache/archives /var/cache/apt/archives/*.deb
91+
sudo find /var/lib/apt/lists/ -maxdepth 1 -type f -cnewer ~/apt-cache-timestamp -execdir ln -t ~/apt-cache/lists/ {} +
92+
sudo find /var/cche/apt/archives/ -maxdepth 1 -type f -cnewer ~/apt-cache-timestamp -execdir ln -t ~/apt-cache/archives/ {} +
9293
9394
lint:
9495
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)