Skip to content

Commit dbf54c9

Browse files
committed
Output $PV at build stage
1 parent 4720e4a commit dbf54c9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build-test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ on:
1111
required: false
1212
type: string
1313
default: cygport
14+
outputs:
15+
pv:
16+
description: The $PV value from the cygport file
17+
value: ${{ jobs.build-test.outputs.pv }}
1418

1519
jobs:
1620
build-test:
1721
name: Build and test
1822
runs-on: windows-latest
1923
env:
2024
CYGPORT_FILE: ${{ inputs.cygport_file }}
25+
outputs:
26+
pv: ${{ steps.data.outputs.pv }}
2127
steps:
2228

2329
- name: Configure Git for Windows' core.autocrlf
@@ -69,15 +75,17 @@ jobs:
6975
add-to-path: false
7076

7177
- name: Load data from cygport file
78+
id: data
7279
shell: C:\cygwin\bin\bash.exe --noprofile --norc -e -o pipefail -o igncr {0}
7380
env:
7481
PATH: C:\cygwin\bin
7582
run: |
76-
eval "$(cygport "$CYGPORT_FILE" vars NAME PF ARCH BUILD_REQUIRES)"
83+
eval "$(cygport "$CYGPORT_FILE" vars NAME PF PV ARCH BUILD_REQUIRES)"
7784
printf 'CYGPORT_NAME=%s\n' "$NAME" | tee -a "$GITHUB_ENV"
7885
printf 'CYGPORT_PF=%s\n' "$PF" | tee -a "$GITHUB_ENV"
7986
printf 'CYGPORT_ARCH=%s\n' "$ARCH" | tee -a "$GITHUB_ENV"
8087
printf 'CYGPORT_BUILD_REQUIRES=%s\n' "$BUILD_REQUIRES" | tee -a "$GITHUB_ENV"
88+
printf 'pv=%s\n' "$PV" | tee -a "$GITHUB_OUTPUT"
8189
8290
- name: Install Cygwin build requirements
8391
uses: cygwin/cygwin-install-action@db475590d56881c6cef7b3f96f6f3dd9532ea1f4

0 commit comments

Comments
 (0)