Skip to content

Commit

Permalink
fix for cross compiling without feature flag (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp committed May 17, 2024
1 parent d6f1a26 commit 2d6e71d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
if: ${{ ! matrix.cross }}
- run: cargo install cross
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
- run: cross build --release --target ${{ matrix.rust-target }}
if: ${{ matrix.cross }}
- run: mv ./target/${{ matrix.rust-target }}/release/warg.exe ./target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}
if: matrix.os == 'windows-latest'
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
if: ${{ ! matrix.cross }}
- run: cargo install cross
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
- run: cross build --release --target ${{ matrix.rust-target }}
if: ${{ matrix.cross }}
- run: mv ./target/${{ matrix.rust-target }}/release/warg.exe ./target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}
if: matrix.os == 'windows-latest'
Expand Down
11 changes: 11 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[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",
]
env.passthrough = [
"OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu",
"OPENSSL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu/openssl",
"OPENSSL_STATIC=yes"
]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge"

0 comments on commit 2d6e71d

Please sign in to comment.