Skip to content

Commit

Permalink
ci: misc. cleanup, naming
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 253c326e0c873bfa875a13f1d44a605a5fa11476
  • Loading branch information
jberryman authored and hasura-bot committed Jan 3, 2022
1 parent 6efa507 commit 265470b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,8 @@ registry := hasura
# This packager version is built using the packeger.df in the packaging folder:
# docker build -t "hasura/graphql-engine-packager:20210218" -f packager.df .
packager_ver := 20210218
SERVER_BUILD_OUTPUT ?= /build/_server_output
docs_output := /build/_server_output/docs.tar.gz

# Getting access to the built products with the `cabal v2-*` commands is really awkward; see
# <https://www.haskell.org/cabal/users-guide/nix-local-build.html#where-are-my-build-products> for a
# little more context. Ideally, we could use `cabal v2-install` for this, but `v2-install` does
# strange and complicated things, and I could not get it to work.
#
# This glob is a pretty heavy hammer designed to work regardless of `cabal-install` version (see the
# aforementioned link for why that’s tricky). If `cabal v2-*` ever gets a better way to do this,
# please replace this with something less hacky.
executables_glob := ../dist-newstyle/build/*/*/graphql-engine-*/**/opt/build/{graphql-engine/graphql-engine,graphql-engine-tests/graphql-engine-tests,graphql-engine-integration-tests/graphql-engine-integration-tests}

# TODO we can probably remove this
# assumes this is built in circleci
ci-build:
## configure
cabal v2-update --project-file=cabal.project.ci
## build
cabal v2-build --project-file=cabal.project.ci
## install
mkdir -p '$(SERVER_BUILD_OUTPUT)'
echo '$(VERSION)' > '$(SERVER_BUILD_OUTPUT)/version.txt'
shopt -s failglob globstar && cp $(executables_glob) '$(SERVER_BUILD_OUTPUT)/'

# assumes this is built in circleci
ci-docs:
# build
Expand Down

0 comments on commit 265470b

Please sign in to comment.