-
Notifications
You must be signed in to change notification settings - Fork 245
58 lines (53 loc) · 1.45 KB
/
test-compilation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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: "${{ matrix.crate }} on ${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-13
crate:
- schema-engine-cli
- prisma-fmt
- query-engine
- query-engine-node-api
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: compile ${{ matrix.crate }}
shell: bash
env:
CRATE: ${{ matrix.crate }}
run: cargo build --release -p "$CRATE"
- name: "Check that Cargo.lock did not change"
run: "git diff --exit-code"
# test-react-native-compilation:
# name: React Native
# uses: ./.github/workflows/build-engines-react-native-template.yml
# with:
# commit: ${{ github.sha }}
# uploadArtifacts: false