-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 1.04 KB
/
Makefile
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
SHELL := /bin/bash
PWD := $(shell pwd)
dotnet-format:
dotnet format --exclude GeneratedProtobuf --exclude examples
protobuf-generate:
./scripts/generate_protobuf.sh
unit-tests:
dotnet test SqlcGenCsharpTests
run-end2end-tests:
./end2end/scripts/run_tests.sh
# process type plugin
dotnet-build-process: protobuf-generate dotnet-format
dotnet build LocalRunner -c Release
dotnet-publish-process: dotnet-build-process
dotnet publish LocalRunner -c release --output dist/
sqlc-generate-process: dotnet-publish-process
sqlc -f sqlc.local.yaml generate
test-process-plugin: unit-tests sqlc-generate-process run-end2end-tests
# WASM type plugin
dotnet-publish-wasm: protobuf-generate
dotnet publish WasmRunner -c release --output dist/
./scripts/wasm/copy_plugin_to.sh dist
update-wasm-plugin:
./scripts/wasm/update_sha.sh sqlc.ci.yaml
sqlc-generate-wasm: dotnet-publish-wasm update-wasm-plugin
SQLCCACHE=./; sqlc -f sqlc.ci.yaml generate
test-wasm-plugin: unit-tests sqlc-generate-wasm update-wasm-plugin run-end2end-tests