update readme #115
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: Build and Test | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Rust | |
run: rustup update stable && rustup default stable | |
- name: Cache dependencies | |
uses: Swatinem/[email protected] | |
- name: Run sccache | |
uses: mozilla-actions/[email protected] | |
env: | |
RUSTC_WRAPPER: sccache | |
SCCACHE_GHA_ENABLED: true | |
RUSTFLAGS: '--cfg profile=ephemeral-build' | |
- name: Run build | |
run: cargo build --verbose | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Rust | |
run: rustup update stable && rustup default stable | |
- name: Cache dependencies | |
uses: Swatinem/[email protected] | |
- name: Run clippy | |
run: cargo clippy --all-targets --all-features | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Fake publish | |
run: cargo publish --token ${CRATES_TOKEN} --dry-run --no-verify | |
env: | |
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} |