mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
migrate build job to Github Actions (#352)
V3_GIT_ORIGIN_REV_ID: b26d1479508aeb9168459f0db82591f8995bb174
This commit is contained in:
parent
ecee753d6f
commit
7e0f0bb1ab
@ -6,15 +6,15 @@ package.edition = "2021"
|
||||
package.license = "Apache-2.0"
|
||||
|
||||
members = [
|
||||
"tracing-util",
|
||||
"lang-graphql",
|
||||
"open-dds",
|
||||
"custom-connector",
|
||||
"engine",
|
||||
"hasura-authn-core",
|
||||
"hasura-authn-webhook",
|
||||
"hasura-authn-jwt",
|
||||
"custom-connector",
|
||||
"opendds-derive"
|
||||
"lang-graphql",
|
||||
"open-dds",
|
||||
"opendds-derive",
|
||||
"tracing-util"
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
|
19
v3/justfile
19
v3/justfile
@ -2,6 +2,7 @@ set positional-arguments
|
||||
|
||||
CLIPPY_ARGS := "-A clippy::result_large_err -D clippy::complexity -A clippy::too_many_arguments -D clippy::style"
|
||||
CLIPPY_FIX_ARGS := "-A clippy::result_large_err -A clippy::too_many_arguments"
|
||||
BUILD_PACKAGE_LIST := "-p custom-connector -p engine -p hasura-authn-core -p hasura-authn-webhook -p hasura-authn-jwt -p lang-graphql -p open-dds -p opendds-derive -p tracing-util"
|
||||
|
||||
default:
|
||||
just --list
|
||||
@ -27,13 +28,15 @@ docker_with_test_env +args:
|
||||
ci-build:
|
||||
# see https://github.com/rust-lang/cargo/issues/4463 for why we build each
|
||||
# package explictly instead of cargo build --workspace --all-targets
|
||||
just docker_with_source_only cargo build -p lang-graphql \
|
||||
-p engine \
|
||||
-p open-dds \
|
||||
-p tracing-util \
|
||||
-p hasura-authn-core \
|
||||
-p hasura-authn-webhook \
|
||||
--release --all-targets
|
||||
just docker_with_source_only \
|
||||
cargo build {{ BUILD_PACKAGE_LIST }} \
|
||||
--release --all-targets
|
||||
|
||||
build-local:
|
||||
# see https://github.com/rust-lang/cargo/issues/4463 for why we build each
|
||||
# package explictly instead of cargo build --workspace --all-targets
|
||||
cargo build {{ BUILD_PACKAGE_LIST }} \
|
||||
--release --all-targets
|
||||
|
||||
# linting run by CI
|
||||
ci-lint:
|
||||
@ -120,7 +123,7 @@ watch-local: start-docker
|
||||
|
||||
# check the code is fine
|
||||
lint-local:
|
||||
cargo clippy --no-deps -- {{ CLIPPY_ARGS }} && cargo fmt --check
|
||||
cargo clippy --no-deps -- {{ CLIPPY_ARGS }}
|
||||
|
||||
# update golden tests
|
||||
update-golden-files-local: start-docker
|
||||
|
Loading…
Reference in New Issue
Block a user