Skip to content

Commit

Permalink
ci/cd: add alias for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurzs committed Jan 9, 2024
1 parent 941fbd8 commit 4abc219
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,35 @@ jobs:
- run: |
make ARCH="${{ matrix.s6_arch }}" VERSION="${{ env.S6_VERSION }}"
# add alias for architecture
- run: |
if [ "$S6_HW" = "aarch64" ] ; then
echo "S6_HW_ALIAS"="arm64" >> $GITHUB_ENV
else
echo "S6_HW_ALIAS"="$S6_HW" >> $GITHUB_ENV
fi
# copy files to alias names if needed
- run: |
if [ "$S6_HW" != "S6_HW_ALIAS" ] ; then
cd output ;
for f in *$S6_HW.tar.* ;
do cp -v "$f" $(echo "$f" | sed "s/$S6_HW/$S6_HW_ALIAS/g") ;
done
fi
- run: |
cd output ; for f in *.tar* ; do sha256sum "$f" > "$f".sha256 ; done
# output arch-specific binary
- uses: ncipollo/release-action@v1
with:
artifacts: "output/s6-overlay-${{ env.S6_HW }}*"
artifacts: "output/s6-overlay-(${{ env.S6_HW }}|{{ env.S6_HW_ALIAS }})*"
omitBodyDuringUpdate: true
allowUpdates: true

- run: |
rm -v output/s6-overlay-${{ env.S6_HW }}*
rm -v output/s6-overlay-(${{ env.S6_HW }}|${{ env.S6_HW_ALIAS }})*
# upload symlinks/non-arch on x86_64 only
- uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 4abc219

Please sign in to comment.