mirror of https://github.com/docker/cli.git
ci: add glibc to build matrix
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
4db5a4f82d
commit
3425e9dc3c
|
@ -19,6 +19,9 @@ jobs:
|
||||||
target:
|
target:
|
||||||
- cross
|
- cross
|
||||||
- dynbinary-cross
|
- dynbinary-cross
|
||||||
|
use_glibc:
|
||||||
|
- ""
|
||||||
|
- glibc
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
|
@ -33,6 +36,8 @@ jobs:
|
||||||
uses: docker/bake-action@v1
|
uses: docker/bake-action@v1
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.target }}
|
targets: ${{ matrix.target }}
|
||||||
|
env:
|
||||||
|
USE_GLIBC: ${{ matrix.use_glibc }}
|
||||||
-
|
-
|
||||||
name: Flatten artifacts
|
name: Flatten artifacts
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
|
@ -43,11 +48,16 @@ jobs:
|
||||||
tar -cvzf "${base}.tar.gz" "$dir"
|
tar -cvzf "${base}.tar.gz" "$dir"
|
||||||
rm -rf "$dir"
|
rm -rf "$dir"
|
||||||
done
|
done
|
||||||
|
if [ -z "${{ matrix.use_glibc }}" ]; then
|
||||||
|
echo "ARTIFACT_NAME=${{ matrix.target }}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "ARTIFACT_NAME=${{ matrix.target }}-glibc" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
-
|
-
|
||||||
name: Upload artifacts
|
name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.target }}
|
name: ${{ env.ARTIFACT_NAME }}
|
||||||
path: ./build/*
|
path: ./build/*
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue