Skip to content

Commit 1b4b76f

Browse files
committed
Handle cygport files being in subdirectories
In this circumstance, the build directory will be in the subdirectory, so when packaging up the build output, look in the right place.
1 parent 2ccc85f commit 1b4b76f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ jobs:
120120
printf 'CYGPORT_PF=%s\n' "$PF" >>"$GITHUB_ENV"
121121
printf 'CYGPORT_ARCH=%s\n' "$ARCH" >>"$GITHUB_ENV"
122122
printf 'CYGPORT_BUILD_REQUIRES=%s\n' "$BUILD_REQUIRES" >>"$GITHUB_ENV"
123+
124+
printf 'CYGPORT_BUILD_DIR=%s\n' "$(dirname "$CYGPORT_FILE")/${PF}.${ARCH}" | tee -a "$GITHUB_ENV"
123125
timeout-minutes: 1
124126

125127
- name: Install Cygwin build requirements
@@ -216,7 +218,7 @@ jobs:
216218
shell: C:\cygwin\bin\bash.exe --noprofile --norc -e -o pipefail -o igncr {0}
217219
env:
218220
PATH: C:\cygwin\bin
219-
run: tar -cvf build-results.tar "${CYGPORT_PF}.${ARCH}/"
221+
run: tar -cvf build-results.tar "$CYGPORT_BUILD_DIR"
220222
timeout-minutes: 10
221223

222224
- name: Store build results

0 commit comments

Comments
 (0)