From d3a903f1de57682d9b978829f310486c50ec0c5b Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 14 Aug 2023 18:32:16 -0400 Subject: [PATCH] fix(go) --- projects/go.dev/package.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/projects/go.dev/package.yml b/projects/go.dev/package.yml index de5fe5a3..efb1e267 100644 --- a/projects/go.dev/package.yml +++ b/projects/go.dev/package.yml @@ -27,24 +27,18 @@ build: tea.xyz/gx/cc: c99 go.dev: '*' working-directory: src - script: |- - # `make.bash` complains about unset GOCACHE and HOME otherwise - export GOCACHE="$(pwd)/.gocache" - - ./make.bash + script: + - ./make.bash # cleanup - cd .. - rm src/*.{bash,bat,rc} - rm src/Make.dist - if test -d "{{prefix}}"; then - find "{{prefix}}" -mindepth 1 -delete - else - mkdir "{{prefix}}" - fi - mv * "{{prefix}}" - find "{{prefix}}" -mindepth 1 -maxdepth 1 -type f -delete -not -name build.sh + - rm *.{bash,bat,rc} Make.dist + - run: find . -mindepth 1 -delete + working-directory: ${{ prefix }} + - run: mv api bin doc lib misc pkg src test go.env "{{prefix}}" + working-directory: $SRCROOT env: + # `make.bash` complains about unset GOCACHE and HOME otherwise + GOCACHE: "$SRCROOT/.gocache" GOROOT_FINAL: ${{ prefix }} GOROOT_BOOTSTRAP: ${{ deps.go.dev.prefix }}