[wasm][ast] Support hashing on Type and FunctionType (#1241) #413
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: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- 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 |