github: Cache the gnu make tarball in the msvcrt build too

This applies the changes from b0bbde0073
to the msvcrt toolchain build as well.
This commit is contained in:
Martin Storsjö committed 2025-12-17 13:48:30 +02:00
1 parent 88f330fefc
commit 6465b7f2ca
1 file changed
+17
+17
View File
@@ -114,6 +114,16 @@ jobs:
ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}}
event: ${{github.event_name == 'workflow_dispatch' && 'push' || 'schedule'}}
name: profile
- name: Cache downloads
id: cache-tarballs
uses: actions/cache@v4
with:
path: /opt/cache
key: tarballs-${{ hashFiles('build-make.sh') }}
- name: Restore cache
if: steps.cache-tarballs.outputs.cache-hit != ''
run: |
ln -s /opt/cache/*.tar.* .
- name: Build
env:
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
@@ -130,6 +140,13 @@ jobs:
NAME=llvm-mingw-$TAG-${{matrix.crt}}-${{matrix.arch}}
mv llvm-mingw $NAME
zip -9rq ../$NAME.zip $NAME
- name: Save cache
if: steps.cache-tarballs.outputs.cache-hit != 'true'
run: |
mkdir -p /opt/cache
for i in make-*.tar.*; do
if [ ! -L $i ]; then cp -a $i /opt/cache; fi
done
- uses: actions/upload-artifact@v4
with:
name: windows-${{matrix.crt}}-${{matrix.arch}}-toolchain