Skip to content

Commit

Permalink
Migrate http backend to curl
Browse files Browse the repository at this point in the history
  • Loading branch information
2bc4 committed Dec 29, 2023
1 parent 327ae43 commit 68e41cd
Show file tree
Hide file tree
Showing 11 changed files with 202 additions and 706 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo check --no-default-features --features rustls-webpki
- run: cargo check --no-default-features --features rustls-native-certs
- run: cargo check --no-default-features --features native-tls
- run: cargo check

fmt:
name: Rustfmt
Expand All @@ -44,6 +42,4 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all --no-default-features --features rustls-webpki
- run: cargo clippy --all --no-default-features --features rustls-native-certs
- run: cargo clippy --all --no-default-features --features native-tls
- run: cargo clippy --all
13 changes: 2 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ jobs:
needs: lint
runs-on: ${{ matrix.os }}
env:
CC_aarch64_unknown_linux_musl: "clang"
AR_aarch64_unknown_linux_musl: "llvm-ar"
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS: "-Clink-self-contained=yes -Clinker=rust-lld"
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS: "-Ctarget-cpu=x86-64-v2"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS: "-Ctarget-cpu=x86-64-v2"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS: "-Ctarget-cpu=x86-64-v2"
strategy:
fail-fast: false
matrix:
Expand All @@ -67,10 +64,7 @@ jobs:
- target: i686-pc-windows-msvc
os: windows-latest
binName: twitch-hls-client.exe
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
binName: twitch-hls-client
- target: aarch64-unknown-linux-musl
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
binName: twitch-hls-client
- target: x86_64-apple-darwin
Expand All @@ -81,9 +75,6 @@ jobs:
binName: twitch-hls-client
steps:
- uses: actions/checkout@v3
- name: Install Musl Tools
if: ${{ contains(matrix.os, 'ubuntu') }}
run: sudo apt-get install -y musl-dev musl-tools clang llvm
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand Down
Loading

0 comments on commit 68e41cd

Please sign in to comment.