Skip to content

Commit

Permalink
Build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Aug 1, 2024
1 parent 6e98544 commit dce2446
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,36 @@ jobs:
env:
RUSTDOCFLAGS: -D warnings ${{ matrix.rust.flags }}
run: cargo doc --no-deps --document-private-items --lib --examples --all-features

build:
name: Build ${{ matrix.rust.name }} ${{ matrix.features.name }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
rust:
- { version: stable, msrv: false }
- { name: "MSRV", version: 1.66, msrv: true }
features:
- { features: "" }
- { name: "(`tls-rustls`)", features: --features tls-rustls }
- { name: "(`tls-rustls-no-provider`)", features: --features tls-rustls-no-provider }
- { name: "(`tls-openssl`)", features: --features tls-openssl, openssl: true }
- { name: "(`--all-features`)", features: --all-features, openssl: true }

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install OpenSSL
if: matrix.features.openssl == true
run: sudo apt-get install pkg-config libssl-dev
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust.version }}
- name: Fix MSRV dependencies
if: matrix.rust.msrv == true
run: cargo update -p tokio --precise 1.38.1
- name: Run Clippy
run: cargo build ${{ matrix.features.features }}
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ name = "axum-server"
readme = "README.md"
repository = "https://github.com/programatik29/axum-server"
version = "0.7.1"
rust-version = "1.66"

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You can find more examples [here](/examples).

## Minimum Supported Rust Version

axum-server's MSRV is `1.63`.
axum-server's MSRV is `1.66`.

## Safety

Expand Down

0 comments on commit dce2446

Please sign in to comment.