Skip to content

Commit

Permalink
chore: attempt to package the binaries in a compressed format.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuene committed Oct 16, 2024
1 parent a02f839 commit 6247204
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,20 @@ jobs:
include:
- rust-target: x86_64-unknown-linux-gnu
os: ubuntu-latest
extension: tar.gz
- rust-target: aarch64-unknown-linux-gnu
os: ubuntu-latest
cross: true
extension: tar.gz
- rust-target: x86_64-apple-darwin
os: macos-latest
extension: tar.gz
- rust-target: aarch64-apple-darwin
os: macos-latest
extension: tar.gz
- rust-target: x86_64-pc-windows-gnu
os: windows-latest
extension: zip
steps:
- uses: actions/checkout@v4
- name: Update Rust
Expand All @@ -52,12 +57,11 @@ jobs:
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }}
if: ${{ matrix.cross }}
- run: mv ./target/${{ matrix.rust-target }}/release/sprocket.exe ./target/${{ matrix.rust-target }}/release/sprocket-${{ matrix.rust-target }}
if: matrix.os == 'windows-latest'
- run: mv ./target/${{ matrix.rust-target }}/release/sprocket ./target/${{ matrix.rust-target }}/release/sprocket-${{ matrix.rust-target }}
- run: tar -czvf sprocket-${{ matrix.rust-target }}.tar.gz -C ./target/${{ matrix.rust-target }}/release sprocket
if: matrix.os != 'windows-latest'
- run: cd ./target/${{ matrix.rust-target }} && 7z a sprocket-${{ matrix.rust-target }}.zip sprocket.exe
if: matrix.os == 'windows-latest'
- name: Update the GH release with the new artifact
uses: softprops/action-gh-release@v2
with:
files: ./target/${{ matrix.rust-target }}/release/sprocket-${{ matrix.rust-target }}

files: ./target/${{ matrix.rust-target }}/release/sprocket-${{ matrix.rust-target }}.${{ matrix.extension }}

0 comments on commit 6247204

Please sign in to comment.