Skip to content

Commit

Permalink
chore: attempt to fix arm64 linux build and non-Windows packaging. (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuene authored Oct 17, 2024
1 parent d6e21ab commit 583ba2d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ jobs:
run: rustup update stable && rustup default stable && rustup target add ${{ matrix.rust-target }}
- run: cargo build --release --target ${{ matrix.rust-target }}
if: ${{ ! matrix.cross }}
- run: sudo dpkg --add-architecture arm64 && sudo apt-get update && sudo apt-get install -y libssl-dev:arm64
if: ${{ matrix.cross }}
- run: cargo install cross
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }}
if: ${{ matrix.cross }}
- run: tar -czvf sprocket-${{ matrix.rust-target }}.tar.gz -C ./target/${{ matrix.rust-target }}/release sprocket
- run: tar -czvf sprocket-${{ matrix.rust-target }}.tar.gz sprocket
working-directory: ./target/${{ matrix.rust-target }}/release
if: matrix.os != 'windows-latest'
- run: cd ./target/${{ matrix.rust-target }}/release && 7z a sprocket-${{ matrix.rust-target }}.zip sprocket.exe
- run: 7z a sprocket-${{ matrix.rust-target }}.zip sprocket.exe
working-directory: ./target/${{ matrix.rust-target }}/release
if: matrix.os == 'windows-latest'
- name: Update the GH release with the new artifact
uses: softprops/action-gh-release@v2
Expand Down
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ tokio = { version = "1.39.1", features = ["full"] }
tracing-log = "0.2.0"
indicatif = "0.17.8"
clap-verbosity-flag = "2.2.1"

# Install openssl for the linux arm64 build
[workspace.metadata.cross.target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH"
]

0 comments on commit 583ba2d

Please sign in to comment.