-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add dev task runner * use task runner for tests this is kinda a hard thing to test, not totally satisfied with its organization but whatever i think its fundamental
- Loading branch information
Showing
6 changed files
with
80 additions
and
65 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# A Makefile for building stuff during development. This is not used for the CI | ||
# builds. These two are separate concepts with different constraints (which | ||
# target is specified, cross compilation, etc.). Using this as a task runner (a | ||
# la just). | ||
|
||
DUCKDB_PLATFORM := osx_arm64 | ||
DUCDKB_EXTENSION_VERSION := v0.0.1 | ||
DUCKDB_VERSION := v1.0.0 | ||
|
||
ifeq ($(DUCKDB_PLATFORM),windows_amd64) | ||
LIBRARY_OUTPUT := duckdb_protobuf.dll | ||
endif | ||
ifeq ($(DUCKDB_PLATFORM),osx_arm64) | ||
LIBRARY_OUTPUT := libduckdb_protobuf.dylib | ||
endif | ||
ifeq ($(DUCKDB_PLATFORM),linux_amd64) | ||
LIBRARY_OUTPUT := libduckdb_protobuf.so | ||
endif | ||
|
||
debug: | ||
cargo build --package duckdb_protobuf | ||
cargo run \ | ||
--package duckdb_metadata_bin \ | ||
--bin duckdb_metadata \ | ||
-- \ | ||
--input target/debug/$(LIBRARY_OUTPUT) \ | ||
--output target/debug/protobuf.duckdb_extension \ | ||
--extension-version $(DUCKDB_EXTENSION_VERSION) \ | ||
--duckdb-version $(DUCKDB_VERSION) \ | ||
--platform $(DUCKDB_PLATFORM) | ||
|
||
release: | ||
cargo build --package duckdb_protobuf --release | ||
cargo run \ | ||
--package duckdb_metadata_bin \ | ||
--bin duckdb_metadata \ | ||
-- \ | ||
--input target/debug/$(LIBRARY_OUTPUT) \ | ||
--output target/release/protobuf.duckdb_extension \ | ||
--extension-version $(DUCDKB_EXTENSION_VERSION) \ | ||
--duckdb-version $(DUCKDB_VERSION) \ | ||
--platform $(DUCKDB_PLATFORM) | ||
|
||
test: release | ||
cargo test | ||
|
||
.PHONY: debug release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,7 @@ anyhow = "1.0" | |
prost = "0.13.1" | ||
prost-build = "0.13.1" | ||
|
||
[[test]] | ||
name = "it" | ||
path = "tests/it/main.rs" | ||
|
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