mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
Use zstd for toolchains
This commit is contained in:
1 parent
2e041a3158
commit
113c5eb706
1 file changed
+4
-4
@@ -555,23 +555,23 @@ jobs:
|
|||||||
- name: Download toolchain checksum
|
- name: Download toolchain checksum
|
||||||
run: |
|
run: |
|
||||||
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/SHA512SUMS
|
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/SHA512SUMS
|
||||||
echo "TOOLCHAIN_CHECKSUM="$(grep ${{ matrix.triple }}-cross.tgz SHA512SUMS | cut -d' ' -f1) >> $GITHUB_ENV
|
echo "TOOLCHAIN_CHECKSUM="$(grep ${{ matrix.triple }}-cross.tar.zst SHA512SUMS | cut -d' ' -f1) >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Download toolchain (cached)
|
- name: Download toolchain (cached)
|
||||||
id: toolchain_cache
|
id: toolchain_cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ matrix.triple }}-cross.tgz
|
path: ${{ matrix.triple }}-cross.tar.zst
|
||||||
key: ${{ matrix.triple }}-${{ env.TOOLCHAIN_CHECKSUM }}-toolchain
|
key: ${{ matrix.triple }}-${{ env.TOOLCHAIN_CHECKSUM }}-toolchain
|
||||||
|
|
||||||
- name: Download toolchain
|
- name: Download toolchain
|
||||||
if: steps.toolchain_cache.outputs.cache-hit != 'true'
|
if: steps.toolchain_cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/${{ matrix.triple }}-cross.tgz
|
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/${{ matrix.triple }}-cross.tar.zst
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run: |
|
run: |
|
||||||
tar -xf ${{ matrix.triple }}-cross.tgz
|
tar --zstd -xf ${{ matrix.triple }}-cross.tar.zst
|
||||||
mkdir sysroot
|
mkdir sysroot
|
||||||
echo "$(pwd)/${{ matrix.triple }}-cross/bin" >> $GITHUB_PATH
|
echo "$(pwd)/${{ matrix.triple }}-cross/bin" >> $GITHUB_PATH
|
||||||
case ${{ matrix.triple }} in
|
case ${{ matrix.triple }} in
|
||||||
|
|||||||
Reference in new issue
Block a user