Update hashbrown requirement from 0.14.0 to 0.15.1 #43
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
name: GitHub CI | |
on: | |
push: | |
paths: | |
- ".github/workflows/build.yml" | |
- "Cargo.toml" | |
- "src/**" | |
- "!**/*.md" | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "Cargo.toml" | |
- "src/**" | |
- "!**/*.md" | |
branches: | |
- main | |
release: | |
types: [released] | |
jobs: | |
build-rust: | |
name: Build | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
shell: bash | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" | |
- name: Rust info | |
shell: bash | |
run: | | |
rustup update | |
rustc --version | |
cargo --version | |
- name: Check | |
shell: bash | |
run: | | |
echo "==== FORMAT CHECK ====" | |
cargo fmt -- --color always --check | |
echo "==== BUILD RELEASE ====" | |
cargo build --color always --release | |
- name: Upload to crates.io | |
if: startsWith(github.ref, 'refs/tags/') | |
shell: bash | |
run: | | |
git reset . | |
git checkout . | |
git clean -xdf | |
cargo login --color always -- "${{secrets.CRATES_IO_TOKEN}}" | |
# --no-verify: we've tested building everything already | |
cargo publish --color always --no-verify |