Skip to content

Commit 8e3b072

Browse files
committed
fix for cross compiling without feature flag
1 parent d6f1a26 commit 8e3b072

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/publish-binaries.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
if: ${{ ! matrix.cross }}
5353
- run: cargo install cross
5454
if: ${{ matrix.cross }}
55-
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
55+
- run: cross build --release --target ${{ matrix.rust-target }}
5656
if: ${{ matrix.cross }}
5757
- run: mv ./target/${{ matrix.rust-target }}/release/warg.exe ./target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}
5858
if: matrix.os == 'windows-latest'
@@ -91,7 +91,7 @@ jobs:
9191
if: ${{ ! matrix.cross }}
9292
- run: cargo install cross
9393
if: ${{ matrix.cross }}
94-
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
94+
- run: cross build --release --target ${{ matrix.rust-target }}
9595
if: ${{ matrix.cross }}
9696
- run: mv ./target/${{ matrix.rust-target }}/release/warg.exe ./target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}
9797
if: matrix.os == 'windows-latest'

Cross.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[target.aarch64-unknown-linux-gnu]
2+
pre-build = [
3+
"dpkg --add-architecture $CROSS_DEB_ARCH",
4+
"apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH",
5+
]
6+
env.passthrough = [
7+
"OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu",
8+
"OPENSSL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu/openssl",
9+
"OPENSSL_STATIC=yes"
10+
]
11+
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge"

0 commit comments

Comments
 (0)