Fix tar command, add caching

This commit is contained in:
Ryan 2021-02-01 14:51:40 +13:00 committed by GitHub
parent 3ac00b7c53
commit 83aef81d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,12 +33,32 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Configure caching
uses: actions/cache@v2
# Caching disabled on macos due to https://github.com/actions/cache/issues/403
if: ${{ matrix.os != 'macos-latest' }}
with:
key: ${{ matrix.os }}-${{ matrix.target }}
path: |
Sources/
output/
binutils-*/
gcc-*/
musl-*/
gmp-*/
mpc-*/
mpfr-*/
build-*/
linux-*/
isl-*/
build/
- name: Build MUSL
run: TARGET=${{ matrix.target }} make
- name: Package outputs
run: tar -C build/local musl-${{ matrix.os }}-${{ matrix.target }}.tgz ${{matrix.target}}/*
run: tar -cf musl-${{ matrix.os }}-${{ matrix.target }}.tgz -C build/local ${{matrix.target}}
- name: Upload artifacts
uses: actions/upload-artifact@v1