Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-gnu-ubuntu-24
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-gnu
- x86_64-pc-windows-msvc
Expand All @@ -27,6 +28,8 @@ jobs:
target: x86_64-pc-windows-msvc
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04
target: x86_64-unknown-linux-gnu-ubuntu-24
- os: ubuntu-22.04
target: x86_64-unknown-linux-musl
- os: ubuntu-22.04-arm
Expand All @@ -48,10 +51,19 @@ jobs:
run: cargo fmt --check

- name: Cargo build (Native TLS)
if: ${{ matrix.os != 'ubuntu-24.04' }}
run: |
cargo build --all --no-default-features --features=native-tls
cargo clean

- name: Cargo build (AVIF Loading Support)
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu-ubuntu-24' }}
run: |
sudo apt-get update
sudo apt-get install -y dav1d libdav1d-dev pkg-config
cargo build --all --no-default-features --features=load-avif
cargo clean

- name: Cargo build (Rust TLS)
run: cargo build --all

Expand Down
113 changes: 112 additions & 1 deletion Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ errors = { workspace = true }
console = { workspace = true }
utils = { workspace = true }
# For feature forwarding
image = { workspace = true }
link_checker = { workspace = true }
search = { workspace = true }
templates = { workspace = true }
Expand All @@ -66,6 +67,7 @@ same-file = "1"
default = ["rust-tls"]
rust-tls = ["reqwest/rustls-tls", "link_checker/rust-tls", "templates/rust-tls"]
native-tls = ["reqwest/default-tls", "link_checker/native-tls", "templates/native-tls"]
load-avif = ["image/avif-native"]
indexing-zh = ["search/indexing-zh"]
indexing-ja = ["search/indexing-ja"]

Expand Down