Commit 96d4cd0 1 parent 5c2601a commit 96d4cd0 Copy full SHA for 96d4cd0
File tree 17 files changed +1018
-0
lines changed
17 files changed +1018
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Benchmark
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ paths-ignore :
8
+ - ' .github/**'
9
+ - ' !.github/workflows/benchmark.yml'
10
+ - ' .buildkite/**'
11
+ - ' *.md'
12
+ - ' LICENSE'
13
+ - ' CODEOWNERS'
14
+ - ' renovate.json'
15
+
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.ref }}
18
+ cancel-in-progress : true
19
+
20
+ jobs :
21
+ benchmark :
22
+ name : ' Run benchmarks on Linux'
23
+
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - uses : actions/checkout@v4
27
+ - uses : dtolnay/rust-toolchain@stable
28
+
29
+ - name : Install cargo-codspeed
30
+ run : cargo install cargo-codspeed
31
+
32
+ - name : ' Build the benchmark targets: schema'
33
+ run : cargo codspeed build -p schema
34
+
35
+ - name : ' Build the benchmark targets: request-handlers'
36
+ run : cargo codspeed build -p request-handlers
37
+
38
+ - name : Run the benchmarks
39
+ uses : CodSpeedHQ/action@v1
40
+ with :
41
+ run : cargo codspeed run
42
+ token : ${{ secrets.CODSPEED_TOKEN }}
Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_dispatch :
3
+ inputs :
4
+ commit :
5
+ description : " Commit on the given branch to build"
6
+ required : false
7
+
8
+ jobs :
9
+ build :
10
+ # Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit
11
+ name : " MacOS Intel engines build on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}"
12
+ env :
13
+ SQLITE_MAX_VARIABLE_NUMBER : 250000
14
+ SQLITE_MAX_EXPR_DEPTH : 10000
15
+
16
+ # minimum supported version of macOS
17
+ MACOSX_DEPLOYMENT_TARGET : 10.15
18
+ runs-on : macos-13
19
+
20
+ steps :
21
+ - name : Output link to real commit
22
+ run : echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }}
23
+
24
+ - name : Checkout ${{ github.event.inputs.commit }}
25
+ uses : actions/checkout@v4
26
+ with :
27
+ ref : ${{ github.event.inputs.commit }}
28
+
29
+ - uses : dtolnay/rust-toolchain@stable
30
+
31
+ - uses : actions/cache@v3
32
+ with :
33
+ path : |
34
+ ~/.cargo/registry
35
+ ~/.cargo/git
36
+ target
37
+ key : ${{ runner.os }}-intel-cargo-${{ hashFiles('**/Cargo.lock') }}
38
+
39
+ - run : |
40
+ cargo build --release -p query-engine -p query-engine-node-api -p schema-engine-cli -p prisma-fmt
41
+
42
+ - uses : actions/upload-artifact@v3
43
+ with :
44
+ name : binaries
45
+ path : |
46
+ ${{ github.workspace }}/target/release/schema-engine
47
+ ${{ github.workspace }}/target/release/prisma-fmt
48
+ ${{ github.workspace }}/target/release/query-engine
49
+ ${{ github.workspace }}/target/release/libquery_engine.dylib
Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_dispatch :
3
+ inputs :
4
+ commit :
5
+ description : " Commit on the given branch to build"
6
+ required : false
7
+
8
+ jobs :
9
+ build :
10
+ # Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit
11
+ name : " MacOS ARM64 (Apple Silicon) engines build on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}"
12
+ env :
13
+ SQLITE_MAX_VARIABLE_NUMBER : 250000
14
+ SQLITE_MAX_EXPR_DEPTH : 10000
15
+ runs-on : macos-13
16
+
17
+ steps :
18
+ - name : Output link to real commit
19
+ run : echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }}
20
+
21
+ - name : Checkout ${{ github.event.inputs.commit }}
22
+ uses : actions/checkout@v4
23
+ with :
24
+ ref : ${{ github.event.inputs.commit }}
25
+
26
+ - uses : dtolnay/rust-toolchain@stable
27
+
28
+ - name : Install aarch64 toolchain
29
+ run : rustup target add aarch64-apple-darwin
30
+
31
+ - uses : actions/cache@v3
32
+ with :
33
+ path : |
34
+ ~/.cargo/registry
35
+ ~/.cargo/git
36
+ target
37
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
38
+
39
+ - run : xcodebuild -showsdks
40
+
41
+ - run : |
42
+ cargo build --target=aarch64-apple-darwin --release -p query-engine -p query-engine-node-api -p schema-engine-cli -p prisma-fmt
43
+
44
+ - uses : actions/upload-artifact@v3
45
+ with :
46
+ name : binaries
47
+ path : |
48
+ ${{ github.workspace }}/target/aarch64-apple-darwin/release/schema-engine
49
+ ${{ github.workspace }}/target/aarch64-apple-darwin/release/prisma-fmt
50
+ ${{ github.workspace }}/target/aarch64-apple-darwin/release/query-engine
51
+ ${{ github.workspace }}/target/aarch64-apple-darwin/release/libquery_engine.dylib
Original file line number Diff line number Diff line change
1
+ name : WASM build
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ paths-ignore :
8
+ - ' .github/**'
9
+ - ' !.github/workflows/build-wasm.yml'
10
+ - ' .buildkite/**'
11
+ - ' *.md'
12
+ - ' LICENSE'
13
+ - ' CODEOWNERS'
14
+ - ' renovate.json'
15
+
16
+ jobs :
17
+ build :
18
+ name : ' prisma-schema-wasm build ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}'
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ - uses : cachix/install-nix-action@v23
23
+
24
+ - run : nix build .#prisma-schema-wasm
25
+ - run : nix flake check
Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_dispatch :
3
+ inputs :
4
+ commit :
5
+ description : " Commit on the given branch to build"
6
+ required : true
7
+
8
+ jobs :
9
+ build :
10
+ # Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit
11
+ name : " Windows engines build on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}"
12
+ env :
13
+ SQLITE_MAX_VARIABLE_NUMBER : 250000
14
+ SQLITE_MAX_EXPR_DEPTH : 10000
15
+ RUSTFLAGS : " -C target-feature=+crt-static"
16
+ runs-on : windows-latest
17
+
18
+ steps :
19
+ - name : Output link to real commit
20
+ run : echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }}
21
+
22
+ - name : Checkout ${{ github.event.inputs.commit }}
23
+ uses : actions/checkout@v4
24
+ with :
25
+ ref : ${{ github.event.inputs.commit }}
26
+
27
+ - uses : dtolnay/rust-toolchain@stable
28
+
29
+ - uses : actions/cache@v3
30
+ with :
31
+ path : |
32
+ ~/.cargo/registry
33
+ ~/.cargo/git
34
+ target
35
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
36
+
37
+ - run : cargo build --release
38
+
39
+ - uses : actions/upload-artifact@v3
40
+ with :
41
+ name : binaries
42
+ path : |
43
+ ${{ github.workspace }}/target/release/*.exe
44
+ ${{ github.workspace }}/target/release/*.dll
Original file line number Diff line number Diff line change
1
+ name : ' Release binary compilation test'
2
+ on :
3
+ pull_request :
4
+ paths-ignore :
5
+ - ' .github/**'
6
+ - ' !.github/workflows/compilation.yml'
7
+ - ' .buildkite/**'
8
+ - ' *.md'
9
+ - ' LICENSE'
10
+ - ' CODEOWNERS'
11
+ - ' renovate.json'
12
+
13
+ concurrency :
14
+ group : ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress : true
16
+
17
+ jobs :
18
+ test-crate-compilation :
19
+ name : ' Compile top level crates on Linux'
20
+ strategy :
21
+ fail-fast : false
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - uses : dtolnay/rust-toolchain@stable
26
+
27
+ - run : ' cargo clean && cargo build --release -p schema-engine-cli'
28
+ name : ' Compile Migration Engine'
29
+
30
+ - run : ' cargo clean && cargo build --release -p prisma-fmt'
31
+ name : ' Compile prisma-fmt'
32
+
33
+ - run : ' cargo clean && cargo build --release -p query-engine'
34
+ name : ' Compile Query Engine Binary'
35
+
36
+ - run : ' cargo clean && cargo build --release -p query-engine-node-api'
37
+ name : ' Compile Query Engine Library'
38
+
39
+ - name : ' Check that Cargo.lock did not change'
40
+ run : ' git diff --exit-code'
Original file line number Diff line number Diff line change
1
+ name : Formatting
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ paths-ignore :
8
+ - ' .github/**'
9
+ - ' !.github/workflows/formatting.yml'
10
+ - ' .buildkite/**'
11
+ - ' *.md'
12
+ - ' LICENSE'
13
+ - ' CODEOWNERS'
14
+ - ' renovate.json'
15
+
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.ref }}
18
+ cancel-in-progress : true
19
+
20
+ jobs :
21
+ clippy :
22
+ runs-on : ubuntu-latest
23
+ env :
24
+ RUSTFLAGS : ' -Dwarnings'
25
+ steps :
26
+ - uses : actions/checkout@v4
27
+ - uses : dtolnay/rust-toolchain@stable
28
+ with :
29
+ components : clippy
30
+ - run : cargo clippy --all-features
31
+
32
+ format :
33
+ runs-on : ubuntu-latest
34
+ steps :
35
+ - uses : actions/checkout@v4
36
+ - uses : dtolnay/rust-toolchain@stable
37
+ with :
38
+ components : rustfmt
39
+ - name : Check formatting
40
+ run : cargo fmt -- --check
41
+ shellcheck :
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - uses : actions/checkout@v4
45
+ - name : Run ShellCheck
46
+ uses : ludeeus/action-shellcheck@master
Original file line number Diff line number Diff line change
1
+ name : Generate cargo docs & engines size
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ concurrency :
9
+ group : ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress : true
11
+
12
+ jobs :
13
+ publish-to-gh-pages :
14
+ runs-on : ubuntu-latest
15
+ strategy :
16
+ fail-fast : true
17
+
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - uses : cachix/install-nix-action@v23
21
+ - run : |
22
+ git config user.email "[email protected] "
23
+ git config user.name "prisma-bot"
24
+
25
+ - name : Generate cargo docs for the workspace to gh-pages branch
26
+ run : nix run .#publish-cargo-docs
27
+
28
+ - name : Publish engines size to gh-pages branch
29
+ run : nix run .#publish-engine-size
You can’t perform that action at this time.
0 commit comments