Skip to content

Fix ods include paths in macro, allowing for new dialects #2372

Fix ods include paths in macro, allowing for new dialects

Fix ods include paths in macro, allowing for new dialects #2372

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- uses: homebrew/actions/setup-homebrew@master
- run: tools/setup.sh
- run: cargo build --all-features
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- uses: homebrew/actions/setup-homebrew@master
- run: tools/setup.sh
- run: cargo test --all-features
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- uses: homebrew/actions/setup-homebrew@master
- run: tools/setup.sh
- run: cargo bench
dialect_build:
# TODO Remove this job when refactoring of dialect macros is done.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- uses: homebrew/actions/setup-homebrew@master
- run: tools/setup.sh
- run: cargo install cargo-expand
- run: cd melior && cargo expand --all-features dialect::ods > ~/current.rs
- uses: actions/checkout@v4
with:
ref: main
- run: cd melior && cargo expand --all-features dialect::ods > ~/main.rs
- run: diff ~/main.rs ~/current.rs