From 3425e9dc3c054bd62489c3ca03feafd16e573c67 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 9 Dec 2021 16:37:02 +0100 Subject: [PATCH] ci: add glibc to build matrix Signed-off-by: CrazyMax --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0be191b6d6..40f383130e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,9 @@ jobs: target: - cross - dynbinary-cross + use_glibc: + - "" + - glibc steps: - name: Checkout @@ -33,6 +36,8 @@ jobs: uses: docker/bake-action@v1 with: targets: ${{ matrix.target }} + env: + USE_GLIBC: ${{ matrix.use_glibc }} - name: Flatten artifacts working-directory: ./build @@ -43,11 +48,16 @@ jobs: tar -cvzf "${base}.tar.gz" "$dir" rm -rf "$dir" 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 uses: actions/upload-artifact@v2 with: - name: ${{ matrix.target }} + name: ${{ env.ARTIFACT_NAME }} path: ./build/* if-no-files-found: error