restore default open was errantly even more overzealous than the default is; removing #23
Workflow file for this run
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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run sccache-cache only on non-release runs | |
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' | |
uses: mozilla-actions/[email protected] | |
- name: Set Rust caching env vars only on non-release runs | |
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' | |
run: | | |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | |
- name: Build | |
run: cargo build --verbose | |
- name: Format | |
run: cargo fmt --check | |
- name: Clippy | |
run: cargo clippy -- -D warnings | |
- name: Check | |
run: rustup show | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Docs | |
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps |