@@ -113,10 +113,22 @@ jobs:
113113 restore-keys : |
114114 apt-archives-${{ matrix.ARCH }}-
115115 - name : Install required packages
116+ env :
117+ DEBIAN_FRONTEND : noninteractive
116118 run : |
117- du -sh /var/cache/apt/archives
118- apt update
119- apt install -y jq gh unzip curl gettext
119+ set -euo pipefail
120+ # Ubuntu/Debian Docker bases ship docker-clean: Post-Invoke hooks that rm archives/*.deb after
121+ # every dpkg run and after apt update — that empties /var/cache/apt/archives no matter what
122+ # Keep-Downloaded-Packages says. Remove it so actions/cache on the default path can work.
123+ rm -f /etc/apt/apt.conf.d/docker-clean
124+ # Sorts after docker-* / 70debconf on Miniforge/Ubuntu images (see ls /etc/apt/apt.conf.d).
125+ printf '%s\n' \
126+ 'APT::Keep-Downloaded-Packages "true";' \
127+ 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \
128+ 'Binary::apt-get::APT::Keep-Downloaded-Packages "true";' \
129+ > /etc/apt/apt.conf.d/numbast-keep-apt-debs.conf
130+ apt-get update
131+ apt-get install -y jq gh unzip curl gettext
120132 - name : Add Rapids tools
121133 run : |
122134 mkdir gha-tools
@@ -185,14 +197,15 @@ jobs:
185197 id : cache-sccache
186198 uses : actions/cache@v5
187199 with :
188- path : ~/.sccache
200+ # Miniforge job container runs as root; ~/.sccache is /root/.sccache
201+ path : /root/.sccache
189202 key : sccache-${{ matrix.ARCH }}-${{ matrix.PY_VER }}
190203 - name : Check sccache
191204 if : steps.cache-sccache.outputs.cache-hit == 'true'
192205 run : |
193206 set -x
194- ls -lh path: ~ /.sccache
195- du -sh path: ~ /.sccache
207+ ls -lh "${HOME} /.sccache"
208+ du -sh "${HOME} /.sccache"
196209 - name : Build Conda Package
197210 run : ${{ inputs.script }}
198211 env :
0 commit comments