mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-04-19 15:34:58 +02:00
Fix tar command, add caching
This commit is contained in:
parent
3ac00b7c53
commit
83aef81d3d
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user