fix prisma/prisma#23902 #1553
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: "All crates: compilation" | |
on: | |
pull_request: | |
paths-ignore: | |
- "!.github/workflows/test-compilation.yml" | |
- ".github/**" | |
- ".buildkite/**" | |
- "*.md" | |
- "LICENSE" | |
- "CODEOWNERS" | |
- "renovate.json" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-crate-compilation: | |
name: "Check release compilation" | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: "cargo clean && cargo build --release -p schema-engine-cli" | |
name: "Compile Migration Engine" | |
- run: "cargo clean && cargo build --release -p prisma-fmt" | |
name: "Compile prisma-fmt" | |
- run: "cargo clean && cargo build --release -p query-engine" | |
name: "Compile Query Engine Binary" | |
- run: "cargo clean && cargo build --release -p query-engine-node-api" | |
name: "Compile Query Engine Library" | |
- name: "Check that Cargo.lock did not change" | |
run: "git diff --exit-code" |