WIP NIGHTLY-only: NddStr #37
This file contains hidden or 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: Run tests and validate version | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| version_check-clippy-tests-demo: | |
| runs-on: ubuntu-latest | |
| # Cargo.toml has "rust-version" (MSRV) 1.86. However, tests need 1.87. | |
| container: rust:1.87-alpine | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run pre-commit | |
| run: ./pre-commit | |
| shell: sh | |
| - name: Tests and demos | |
| run: | | |
| rustup component add clippy rustfmt | |
| cargo clippy | |
| cargo fmt --check | |
| cargo doc --no-deps --quiet | |
| cargo test | |
| cargo test --release | |
| rustup install nightly --profile minimal | |
| rustup +nightly component add miri | |
| cargo +nightly miri test | |
| cross-crate-demo-problem/bin/invocation_scripts/static_option_u8.sh | |
| cross-crate-demo-problem/bin/invocation_scripts/static_str.sh | |
| cross-crate-demo-problem/bin/invocation_scripts/literal_str.sh | |
| cross-crate-demo-problem/bin-fat-lto/invocation_scripts/static_option_u8.sh | |
| cross-crate-demo-problem/bin-fat-lto/invocation_scripts/static_str.sh | |
| cross-crate-demo-problem/bin-fat-lto/invocation_scripts/literal_str.sh | |
| shell: sh |