Bump version to 0.2.0-alpha.4 #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: ["main"] | |
name: CI | |
jobs: | |
test-and-doc: | |
name: Test & Doc | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
RUSTDOCFLAGS: --cfg docsrs | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust nightly | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Test with default features | |
run: cargo test | |
- name: Build with no features | |
run: cargo build --no-default-features | |
- name: Build with feature std | |
run: cargo build --no-default-features -F std | |
- name: Build with feature net | |
run: cargo build --no-default-features -F net | |
- name: Build doc | |
run: cargo doc | |
- name: Deploy doc | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc | |
publish_branch: doc |