File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 target :
2020 - cross
2121 - dynbinary-cross
22+ use_glibc :
23+ - " "
24+ - glibc
2225 steps :
2326 -
2427 name : Checkout
3336 uses : docker/bake-action@v1
3437 with :
3538 targets : ${{ matrix.target }}
39+ env :
40+ USE_GLIBC : ${{ matrix.use_glibc }}
3641 -
3742 name : Flatten artifacts
3843 working-directory : ./build
@@ -43,11 +48,16 @@ jobs:
4348 tar -cvzf "${base}.tar.gz" "$dir"
4449 rm -rf "$dir"
4550 done
51+ if [ -z "${{ matrix.use_glibc }}" ]; then
52+ echo "ARTIFACT_NAME=${{ matrix.target }}" >> $GITHUB_ENV
53+ else
54+ echo "ARTIFACT_NAME=${{ matrix.target }}-glibc" >> $GITHUB_ENV
55+ fi
4656 -
4757 name : Upload artifacts
4858 uses : actions/upload-artifact@v2
4959 with :
50- name : ${{ matrix.target }}
60+ name : ${{ env.ARTIFACT_NAME }}
5161 path : ./build/*
5262 if-no-files-found : error
5363
You can’t perform that action at this time.
0 commit comments