Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
catoa committed Jan 3, 2025
1 parent e54744e commit dfb2629
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
# - os: windows-latest
# target: x86_64-pc-windows-gnu
- os: windows-latest
target: x86_64-pc-windows-gnu
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -41,15 +41,15 @@ jobs:
dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
mkdir "$dirname"
# TODO: Resolve issues with windows builds failing
# if [ "${{ matrix.os }}" = "windows-latest" ]; then
# mv "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname"
# 7z a "$dirname.zip" "$dirname"
# echo "ASSET=$dirname.zip" >> $GITHUB_ENV
# else
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
tar -czf "$dirname.tar.gz" "$dirname"
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
# fi
if [ "${{ matrix.os }}" = "windows-latest" ]; then
mv "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname"
7z a "$dirname.zip" "$dirname"
echo "ASSET=$dirname.zip" >> $GITHUB_ENV
else
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
tar -czf "$dirname.tar.gz" "$dirname"
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
fi
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit dfb2629

Please sign in to comment.