Skip to content

Commit

Permalink
Add several features to select the TLS dependency for reqwest
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Aug 31, 2024
1 parent af9a0b2 commit c4ce8b6
Show file tree
Hide file tree
Showing 5 changed files with 258 additions and 6 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ jobs:
target: x86_64-unknown-linux-musl
bin: ubi
name: ubi-Linux-x86_64-musl.tar.gz
- os_name: Linux-x86_64 (rustls-native-roots)
os: ubuntu-20.04
target: x86_64-unknown-linux-musl
bin: ubi
name: ubi-Linux-x86_64-musl.tar.gz
features: rustls-native-roots
- os_name: Linux-x86_64 (native-tls)
os: ubuntu-20.04
target: x86_64-unknown-linux-musl
bin: ubi
name: ubi-Linux-x86_64-musl.tar.gz
features: native-tls
- os_name: Linux-x86_64 (native-tls-vendored)
os: ubuntu-20.04
target: x86_64-unknown-linux-musl
bin: ubi
name: ubi-Linux-x86_64-musl.tar.gz
features: native-tls-vendored
- os_name: Linux-aarch64
os: ubuntu-20.04
target: aarch64-unknown-linux-musl
Expand Down Expand Up @@ -124,13 +142,18 @@ jobs:
- name: Install musl-tools on Linux
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
if: contains(matrix.platform.name, 'musl')
- name: Set "--features" flag
id: set-features-flag
run: |
echo "features-flag='--features ${{ matrix.features }}'" >> "$GITHUB_OUTPUT"
if: matrix.features != ''
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.toolchain }}
args: "--locked --release"
args: --locked --release ${{ steps.set-features.outputs.features-flag }}
strip: true
- name: Run tests
uses: houseabsolute/actions-rust-cross@v0
Expand Down
200 changes: 200 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c4ce8b6

Please sign in to comment.