Skip to content

Commit

Permalink
Install openssl when building aarch64 binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarx committed Jan 24, 2025
1 parent d2d7f99 commit c5a9a67
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -17,7 +17,7 @@ jobs:

- os-name: linux-aarch64
runs-on: ubuntu-22.04
target: aarch64-unknown-linux-musl
target: aarch64-unknown-linux-gnu

- os-name: windows-gnu
runs-on: windows-latest
Expand Down Expand Up @@ -50,13 +50,13 @@ jobs:
mkdir -p "$name"
cp {README.md,LICENSE-APACHE,LICENSE-MIT} "$name"
if [ "${{ matrix.os-name }}" = "windows-gnu ]; then
cp "target/${{ matrix.target }}/release/nmo.exe" "$name/"
if [ "${{ matrix.platform.os-name }}" = "windows-gnu ]; then
cp "target/${{ matrix.platform.target }}/release/nmo.exe" "$name/"
asset=$name.zip
7z a "$asset" "$name"
echo ASSET=$asset >> $GITHUB_ENV
else
cp "target/${{ matrix.target }}/release/nmo" "$name/"
cp "target/${{ matrix.platform.target }}/release/nmo" "$name/"
asset=$name.tar.gz
tar czf "$asset" "$name"
echo ASSET=$asset >> $GITHUB_ENV
Expand Down
3 changes: 3 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[target.x86_64-unknown-linux-gnu]
pre-build = [ "apt-get update && apt-get install --assume-yes libssl-dev pkg-config" ]

[target.aarch64-unknown-linux-gnu]
pre-build = [ "apt-get update && apt-get install --assume-yes libssl-dev pkg-config" ]

0 comments on commit c5a9a67

Please sign in to comment.