Skip to content

Commit

Permalink
Version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDing committed Oct 14, 2024
1 parent 2494bd8 commit 6a87544
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 21 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- if: contains(matrix.target, 'x86')
uses: ilammy/setup-nasm@v1

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -48,6 +51,18 @@ jobs:

- uses: Swatinem/rust-cache@v1

- name: Install dependencies for aws-lc-rs
shell: bash
run: |
if [ "${{ matrix.os }}" = "windows-latest" ]; then
echo 'LIBCLANG_PATH="C:\Program Files\LLVM\bin"' >> $GITHUB_ENV
echo 'AWS_LC_SYS_PREBUILT_NASM=1' >> $GITHUB_ENV
cargo install --force --locked bindgen-cli
elif [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
sudo apt-get install -y build-essential cmake golang libclang1 libclang-dev
cargo install --force --locked bindgen-cli
fi
- name: Build
if: matrix.target != 'aarch64-apple-darwin'
run: cargo build --verbose
Expand Down
52 changes: 33 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,46 +61,48 @@ jobs:
fail-fast: false
matrix:
include:
- build: linux
- build: linux-x86_64-musl
os: ubuntu-latest
rust: nightly
rust: stable
target: x86_64-unknown-linux-musl
strip: x86_64-linux-musl-strip
- build: stable-aarch64
- build: linux-x86_64-gnu
os: ubuntu-latest
rust: stable
target: aarch64-unknown-linux-gnu
strip: aarch64-linux-gnu-strip
qemu: qemu-aarch64
- build: stable-powerpc64
target: x86_64-unknown-linux-gnu
strip: x86_64-linux-gnu-strip
- build: stable-aarch64-musl
os: ubuntu-latest
rust: stable
target: powerpc64-unknown-linux-gnu
strip: powerpc64-linux-gnu-strip
qemu: qemu-ppc64
- build: stable-s390x
target: aarch64-unknown-linux-musl
strip: aarch64-linux-musl-strip
qemu: qemu-aarch64
- build: stable-aarch64-gnu
os: ubuntu-latest
rust: stable
target: s390x-unknown-linux-gnu
strip: s390x-linux-gnu-strip
qemu: qemu-s390x
target: aarch64-unknown-linux-gnu
strip: aarch64-linux-gnu-strip
qemu: qemu-aarch64
- build: macos
os: macos-latest
rust: nightly
rust: stable
target: x86_64-apple-darwin
- build: win-msvc
os: windows-latest
rust: nightly
rust: stable
target: x86_64-pc-windows-msvc
- build: win-gnu
os: windows-latest
rust: nightly-x86_64-gnu
rust: stable-x86_64-gnu
target: x86_64-pc-windows-gnu

steps:
- name: Checkout repository
uses: actions/checkout@v4

- if: contains(matrix.target, 'x86')
uses: ilammy/setup-nasm@v1

- name: Install packages (Ubuntu)
if: matrix.os == 'ubuntu-latest'
shell: bash
Expand Down Expand Up @@ -141,6 +143,18 @@ jobs:
echo "target flag is: ${{ env.TARGET_FLAGS }}"
echo "target dir is: ${{ env.TARGET_DIR }}"
- name: Install dependencies for aws-lc-rs
shell: bash
run: |
if [ "${{ matrix.os }}" = "windows-latest" ]; then
echo 'LIBCLANG_PATH="C:\Program Files\LLVM\bin"' >> $GITHUB_ENV
echo 'AWS_LC_SYS_PREBUILT_NASM=1' >> $GITHUB_ENV
cargo install --force --locked bindgen-cli
elif [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
sudo apt-get install -y build-essential cmake golang libclang1 libclang-dev
cargo install --force --locked bindgen-cli
fi
- name: Build release binary
shell: bash
run: |
Expand Down Expand Up @@ -181,17 +195,17 @@ jobs:
cp {README.md,LICENSE-APACHE,LICENSE-MIT} "$ARCHIVE"/
- name: Build archive (Windows)
shell: bash
if: matrix.os == 'windows-latest'
shell: bash
run: |
7z a "$ARCHIVE.zip" "$ARCHIVE"
certutil -hashfile "$ARCHIVE.zip" SHA256 > "$ARCHIVE.zip.sha256"
echo "ASSET=$ARCHIVE.zip" >> $GITHUB_ENV
echo "ASSET_SUM=$ARCHIVE.zip.sha256" >> $GITHUB_ENV
- name: Build archive (Unix)
shell: bash
if: matrix.os != 'windows-latest'
shell: bash
run: |
tar czf "$ARCHIVE.tar.gz" "$ARCHIVE"
shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aget-rs"
version = "0.5.1"
version = "0.6.0"
authors = ["PeterDing <[email protected]>"]
homepage = "https://github.com/PeterDing/aget-rs"
description="Aget-rs - Fast Asynchronous Downloader with Rust 🦀"
Expand Down Expand Up @@ -57,7 +57,7 @@ dirs = "5.0"
m3u8-rs = "6"

# for torrent
librqbit = { git = "https://github.com/ikatson/rqbit.git", branch = "main" }
librqbit = { git = "https://github.com/ikatson/rqbit.git", branch = "main", features = ["rust-tls"], default-features = false }

# for tracing
tracing = "0.1"
Expand Down

0 comments on commit 6a87544

Please sign in to comment.