diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 28aa77a..2e040dc 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -11,6 +11,10 @@ on: required: false type: string default: cygport + outputs: + pv: + description: The $PV value from the cygport file + value: ${{ jobs.build-test.outputs.pv }} jobs: build-test: @@ -18,6 +22,8 @@ jobs: runs-on: windows-latest env: CYGPORT_FILE: ${{ inputs.cygport_file }} + outputs: + pv: ${{ steps.data.outputs.pv }} steps: - name: Configure Git for Windows' core.autocrlf @@ -69,15 +75,17 @@ jobs: add-to-path: false - name: Load data from cygport file + id: data shell: C:\cygwin\bin\bash.exe --noprofile --norc -e -o pipefail -o igncr {0} env: PATH: C:\cygwin\bin run: | - eval "$(cygport "$CYGPORT_FILE" vars NAME PF ARCH BUILD_REQUIRES)" + eval "$(cygport "$CYGPORT_FILE" vars NAME PF PV ARCH BUILD_REQUIRES)" printf 'CYGPORT_NAME=%s\n' "$NAME" | tee -a "$GITHUB_ENV" printf 'CYGPORT_PF=%s\n' "$PF" | tee -a "$GITHUB_ENV" printf 'CYGPORT_ARCH=%s\n' "$ARCH" | tee -a "$GITHUB_ENV" printf 'CYGPORT_BUILD_REQUIRES=%s\n' "$BUILD_REQUIRES" | tee -a "$GITHUB_ENV" + printf 'pv=%s\n' "$PV" | tee -a "$GITHUB_OUTPUT" - name: Install Cygwin build requirements uses: cygwin/cygwin-install-action@db475590d56881c6cef7b3f96f6f3dd9532ea1f4