File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,35 @@ jobs:
6767 - run : |
6868 make ARCH="${{ matrix.s6_arch }}" VERSION="${{ env.S6_VERSION }}"
6969
70+ # add alias for architecture
71+ - run : |
72+ if [ "$S6_HW" = "aarch64" ] ; then
73+ echo "S6_HW_ALIAS"="arm64" >> $GITHUB_ENV
74+ else
75+ echo "S6_HW_ALIAS"="$S6_HW" >> $GITHUB_ENV
76+ fi
77+
78+ # copy files to alias names if needed
79+ - run : |
80+ if [ "$S6_HW" != "S6_HW_ALIAS" ] ; then
81+ cd output ;
82+ for f in *$S6_HW.tar.* ;
83+ do cp -v "$f" $(echo "$f" | sed "s/$S6_HW/$S6_HW_ALIAS/g") ;
84+ done
85+ fi
86+
7087 - run : |
7188 cd output ; for f in *.tar* ; do sha256sum "$f" > "$f".sha256 ; done
7289
7390 # output arch-specific binary
7491 - uses : ncipollo/release-action@v1
7592 with :
76- artifacts : " output/s6-overlay-${{ env.S6_HW }}*"
93+ artifacts : " output/s6-overlay-( ${{ env.S6_HW }}|{{ env.S6_HW_ALIAS }}) *"
7794 omitBodyDuringUpdate : true
7895 allowUpdates : true
7996
8097 - run : |
81- rm -v output/s6-overlay-${{ env.S6_HW }}*
98+ rm -v output/s6-overlay-( ${{ env.S6_HW }}|${{ env.S6_HW_ALIAS }}) *
8299
83100 # upload symlinks/non-arch on x86_64 only
84101 - uses : ncipollo/release-action@v1
You can’t perform that action at this time.
0 commit comments