[compiler][hir] Create fresh bindings for conditionally destructured … #124
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: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: oven-sh/setup-bun@v1 | |
- name: Cache Cargo | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: cargo-build-debug | |
- name: Format Check | |
run: cargo fmt --all -- --check | |
- name: Build Tests | |
run: cargo build --tests --bins | |
- name: Lint | |
run: cargo lint | |
- name: Build and Validate | |
run: ./target/debug/samlang-cli e2e | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy, llvm-tools-preview | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: Cache Cargo | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: cargo-test | |
- name: Run Tests | |
run: cargo tc |