Reimplement XSLT pattern matching inside the stack-based VM #174
Workflow file for this run
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
| # Following a bunch of recommendations from | |
| # https://corrode.dev/blog/tips-for-faster-ci-builds/ | |
| name: Cargo Build & Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| # disable incremental compilation for faster from scratch builds | |
| CARGO_INCREMENTAL: 0 | |
| # disable debug info to increase caching efficiency | |
| CARGO_PROFILE_TEST_DEBUG: 0 | |
| jobs: | |
| build_and_test: | |
| name: Cargo Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| # caching | |
| - name: Cache Dependencies | |
| id: cache-dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check Rust formatting | |
| run: cargo fmt --check --all | |
| - name: Check Rust lints | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Test | |
| run: cargo test --verbose | |
| # we run these conformance tests in debug mode. While the debug tests run | |
| # more slowly we catch some bounds check errors that release mode | |
| # doesn't. | |
| - name: Check (conformance suite) | |
| run: cargo run --bin xee-testrunner -- -v check vendor/xpath-tests/ |