Skip to content

Commit 28ec2b4

Browse files
committed
fix(ci): use tmp to cache apt packages
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 247189b commit 28ec2b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/sphinxbuild.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ jobs:
5858
- name: Checkout repository
5959
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6060

61-
- name: Configure apt cache to use /dev/shm
61+
- name: Configure apt cache to use /tmp for caching LaTeX packages
6262
if: ${{ matrix.manual.build_pdf_path }}
6363
run: |
64-
mkdir -p /dev/shm/apt/cache/archives
65-
echo 'Dir::Cache::archives "/dev/shm/apt/cache/archives";' | sudo tee /etc/apt/apt.conf.d/apt-cache-shm
64+
mkdir -p /tmp/apt/cache/archives
65+
echo 'Dir::Cache::archives "/tmp/apt/cache/archives";' | sudo tee /etc/apt/apt.conf.d/apt-cache-tmp
6666
6767
- name: Cache LaTeX apt packages
6868
if: ${{ matrix.manual.build_pdf_path }}
6969
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
7070
with:
71-
path: /dev/shm/apt/cache/archives
71+
path: /tmp/apt/cache/archives
7272
key: latex-apt-${{ runner.os }}-${{ hashFiles('.github/workflows/sphinxbuild.yml') }}
7373
restore-keys: |
7474
latex-apt-${{ runner.os }}-
@@ -92,7 +92,7 @@ jobs:
9292
9393
- name: Fix apt cache ownership for caching
9494
if: ${{ matrix.manual.build_pdf_path }}
95-
run: sudo chown -R $(id -u):$(id -g) /dev/shm/apt/cache/archives
95+
run: sudo chown -R $(id -u):$(id -g) /tmp/apt/cache/archives
9696

9797
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
9898
with:

0 commit comments

Comments
 (0)