Skip to content

Commit 4746b71

Browse files
authored
try with vendored native tls (#114)
1 parent 2d56540 commit 4746b71

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/publish-binaries.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ jobs:
4848
- uses: actions/checkout@v4
4949
- name: Install Rust
5050
run: rustup update stable --no-self-update && rustup default stable && rustup target add ${{ matrix.rust-target }}
51-
- run: sudo apt install -y librust-openssl-sys-dev
52-
if: matrix.os == 'ubuntu-latest'
5351
- run: cargo build --release --target ${{ matrix.rust-target }}
5452
if: ${{ ! matrix.cross }}
5553
- run: cargo install cross
5654
if: ${{ matrix.cross }}
57-
- run: cross build --release --target ${{ matrix.rust-target }}
55+
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
5856
if: ${{ matrix.cross }}
5957
- run: mv ./target/${{ matrix.rust-target }}/release/wac.exe ./target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
6058
if: matrix.os == 'windows-latest'
@@ -89,13 +87,11 @@ jobs:
8987
- uses: actions/checkout@v4
9088
- name: Install Rust
9189
run: rustup update stable --no-self-update && rustup default stable && rustup target add ${{ matrix.rust-target }}
92-
- run: sudo apt install -y librust-openssl-sys-dev
93-
if: matrix.os == 'ubuntu-latest'
9490
- run: cargo build --release --target ${{ matrix.rust-target }}
9591
if: ${{ ! matrix.cross }}
9692
- run: cargo install cross
9793
if: ${{ matrix.cross }}
98-
- run: cross build --release --target ${{ matrix.rust-target }}
94+
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
9995
if: ${{ matrix.cross }}
10096
- run: mv ./target/${{ matrix.rust-target }}/release/wac.exe ./target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
10197
if: matrix.os == 'windows-latest'

Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ default = ["wit", "registry"]
4646
wat = ["wac-resolver/wat"]
4747
wit = ["wac-resolver/wit"]
4848
registry = ["wac-resolver/registry", "dep:indicatif", "dep:warg-client", "dep:warg-protocol"]
49+
native-tls-vendored = ["warg-client?/native-tls-vendored"]
4950

5051
[workspace.dependencies]
5152
wac-parser = { path = "crates/wac-parser", version = "0.1.0", default-features = false }

0 commit comments

Comments
 (0)