@@ -105,10 +105,21 @@ jobs:
105105 repository : ${{ inputs.repo }}
106106 ref : ${{ inputs.sha }}
107107 fetch-depth : 0
108+ - name : Cache apt archives
109+ uses : actions/cache@v5
110+ with :
111+ path : /var/cache/apt/archives
112+ key : apt-archives-${{ matrix.ARCH }}-${{ hashFiles('.github/workflows/conda-python-build.yaml') }}
113+ restore-keys : |
114+ apt-archives-${{ matrix.ARCH }}-
108115 - name : Install required packages
116+ env :
117+ DEBIAN_FRONTEND : noninteractive
109118 run : |
110- apt update
111- apt install -y jq gh unzip curl gettext
119+ set -euo pipefail
120+ rm -f /etc/apt/apt.conf.d/docker-clean
121+ apt-get update
122+ apt-get install -y jq gh unzip curl gettext
112123 - name : Add Rapids tools
113124 run : |
114125 mkdir gha-tools
@@ -126,6 +137,17 @@ jobs:
126137 SCCACHE_VERSION : 0.14.0-rapids.1
127138 GH_TOKEN : ${{ github.token }}
128139 run : rapids-install-sccache
140+ - name : Cache conda caches
141+ id : cache-conda
142+ uses : actions/cache@v5
143+ with :
144+ path : /opt/conda/pkgs
145+ key : conda-cache-${{ matrix.ARCH }}-${{ matrix.PY_VER }}
146+ - name : Check conda cache
147+ if : steps.cache-conda.outputs.cache-hit == 'true'
148+ run : |
149+ ls -lh /opt/conda/pkgs
150+ du -sh /opt/conda/pkgs
129151 - name : Update conda and install conda build
130152 run : |
131153 set -x
@@ -162,6 +184,18 @@ jobs:
162184 echo "GIT_DESCRIBE_TAG: ${GIT_DESCRIBE_TAG}"
163185 echo "git describe: $(git describe)"
164186 echo "git count commits since tag: $(git rev-list ${GIT_DESCRIBE_TAG}..HEAD --count)"
187+ - name : Cache sccache
188+ id : cache-sccache
189+ uses : actions/cache@v5
190+ with :
191+ path : /github/home/.cache/sccache
192+ key : sccache-${{ matrix.ARCH }}-${{ matrix.PY_VER }}
193+ - name : Check sccache
194+ if : steps.cache-sccache.outputs.cache-hit == 'true'
195+ run : |
196+ set -x
197+ ls -lh /github/home/.cache/sccache
198+ du -sh /github/home/.cache/sccache
165199 - name : Build Conda Package
166200 run : ${{ inputs.script }}
167201 env :
0 commit comments