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
@ -34,11 +34,31 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Build MUSL
|
||||||
run: TARGET=${{ matrix.target }} make
|
run: TARGET=${{ matrix.target }} make
|
||||||
|
|
||||||
- name: Package outputs
|
- 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
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
Loading…
Reference in New Issue
Block a user