From 54e990800556c696874cb09c2919f5ef421d547c Mon Sep 17 00:00:00 2001 From: tim Date: Thu, 30 May 2024 15:59:13 -0400 Subject: [PATCH] fix --- .github/workflows/CompileWindows.yml | 21 +++++++++++++-------- _gha-inline.sh | 4 ---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CompileWindows.yml b/.github/workflows/CompileWindows.yml index 1b3c68b166..4af52ba71d 100644 --- a/.github/workflows/CompileWindows.yml +++ b/.github/workflows/CompileWindows.yml @@ -31,21 +31,26 @@ jobs: echo '${{ github.event.inputs.fstuple }}' echo '${{ fromJSON(github.event.inputs.fstuple) }}' - - name: ~Clone + - name: _gha-inline run: | source /d/a/_actions/humbletim/firestorm-gha/tpv-gha-nunja/_gha-inline.sh - echo "BASH_ENV=$(cygpath -was SHELL.env)" | sed 's@\\@\\\\@g' | tee -a $GITHUB_ENV + $gha_fsvr_dir/gha-generate-shell-env.bash | tee -a SHELL.env + echo BASH_ENV=$(cygpath -was SHELL.env) | sed 's@\\@\\\\@g' | tee -a $GITHUB_ENV + source $ghash/gha.ht-ln.bash + ht-ln $gha_fsvr_dir/gha-node20-run ./fsvr-action + mkdir -pv env.d bin bin/pystuff cache repo build - echo cache_id=$(echo "$base-$repo" | sed 's@[^-a-zA-Z0-9_.]@-@g') | tee -a env.d/local.env - source $GITHUB_ENV - source $BASH_ENV - source $ghash/gha.quiet-clone.bash - quiet-clone github.com ${GITHUB_REPOSITORY} ${GITHUB_REF_NAME} fsvr ( + echo cache_id=$(echo "$base-$repo" | sed 's@[^-a-zA-Z0-9_.]@-@g') echo fsvr_dir=$PWD/fsvr echo 'function fsvr_step() {( set -Euo pipefail; $fsvr_dir/util/build.sh "$@" ; )} ; declare -xf fsvr_step' ) | tee -a env.d/local.env + - name: ~Clone + run: | + source $ghash/gha.quiet-clone.bash + quiet-clone github.com ${GITHUB_REPOSITORY} ${GITHUB_REF_NAME} ${fsvr_dir} + - name: Generate gha-bootstrap.env run: | source $gha_fsvr_dir/fsvr-gha-bootstrap.bash @@ -56,7 +61,7 @@ jobs: with: run: | wget --version | head -1 - . $gha_fsvr_dir/gha-populate-bin.bash + source $gha_fsvr_dir/gha-populate-bin.bash gha-populate-bin-windows - name: Expand Source Repositories diff --git a/_gha-inline.sh b/_gha-inline.sh index ba34ed2b14..488b0563a2 100644 --- a/_gha-inline.sh +++ b/_gha-inline.sh @@ -4,8 +4,6 @@ test -v GITHUB_ACTIONS || { echo "GITHUB_ACTIONS expected" >&2 ; exit 3 ; } # /d/a/_actions/humbletim/firestorm-gha/tpv-gha-nunja export gha_fsvr_dir=$(readlink -f $(dirname "${BASH_SOURCE}")) export ghash=$gha_fsvr_dir/gha -source $ghash/gha.ht-ln.bash -ht-ln $gha_fsvr_dir/gha-node20-run ./fsvr-action export PATH="$PATH:/c/ProgramData/Chocolatey/bin" jq '.inputs.fstuple|fromjson' $GITHUB_EVENT_PATH \ @@ -14,5 +12,3 @@ jq '.inputs.fstuple|fromjson' $GITHUB_EVENT_PATH \ source $GITHUB_ENV export workspace=${GITHUB_WORKSPACE:-${workspace:-$PWD}} - -$gha_fsvr_dir/gha-generate-shell-env.bash | tee -a SHELL.env