-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make sure that MacOS ARM builds in CI * Include man page and completions in prebuilt releases
- Loading branch information
1 parent
d1fd7c6
commit 662c10b
Showing
2 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,10 +98,27 @@ jobs: | |
echo "BIN_NAME=sd" >> $GITHUB_ENV | ||
fi | ||
- name: Setup archive | ||
shell: bash | ||
run: | | ||
staging="sd-${{ env.SD_VERSION }}-${{ matrix.target }}" | ||
mkdir -p "$staging" | ||
cp -r {README.md,LICENSE,gen/*} "$staging" | ||
if [ "${{ matrix.os }}" = "windows-latest" ]; then | ||
cp "target/${{ matrix.target }}/release/sd.exe" "$staging/" | ||
7z a "$staging.zip" "$staging" | ||
echo "ASSET=$staging.zip" >> $GITHUB_ENV | ||
else | ||
cp "target/${{ matrix.target }}/release-lto/inlyne" "$staging/" | ||
tar czf "$staging.tar.gz" "$staging" | ||
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV | ||
fi | ||
- name: Upload binaries to release | ||
uses: svenstaro/[email protected] | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/${{ matrix.target }}/release/${{ env.BIN_NAME }} | ||
asset_name: sd-${{ env.SD_VERSION }}-${{ matrix.target }} | ||
file: ${{ env.ASSET }} | ||
asset_name: ${{ env.ASSET }} | ||
tag: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters