File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11
11
required : false
12
12
type : string
13
13
default : cygport
14
+ outputs :
15
+ pv :
16
+ description : The $PV value from the cygport file
17
+ value : ${{ jobs.build-test.outputs.pv }}
14
18
15
19
jobs :
16
20
build-test :
17
21
name : Build and test
18
22
runs-on : windows-latest
19
23
env :
20
24
CYGPORT_FILE : ${{ inputs.cygport_file }}
25
+ outputs :
26
+ pv : ${{ steps.data.outputs.pv }}
21
27
steps :
22
28
23
29
- name : Configure Git for Windows' core.autocrlf
@@ -69,15 +75,17 @@ jobs:
69
75
add-to-path : false
70
76
71
77
- name : Load data from cygport file
78
+ id : data
72
79
shell : C:\cygwin\bin\bash.exe --noprofile --norc -e -o pipefail -o igncr {0}
73
80
env :
74
81
PATH : C:\cygwin\bin
75
82
run : |
76
- eval "$(cygport "$CYGPORT_FILE" vars NAME PF ARCH BUILD_REQUIRES)"
83
+ eval "$(cygport "$CYGPORT_FILE" vars NAME PF PV ARCH BUILD_REQUIRES)"
77
84
printf 'CYGPORT_NAME=%s\n' "$NAME" | tee -a "$GITHUB_ENV"
78
85
printf 'CYGPORT_PF=%s\n' "$PF" | tee -a "$GITHUB_ENV"
79
86
printf 'CYGPORT_ARCH=%s\n' "$ARCH" | tee -a "$GITHUB_ENV"
80
87
printf 'CYGPORT_BUILD_REQUIRES=%s\n' "$BUILD_REQUIRES" | tee -a "$GITHUB_ENV"
88
+ printf 'pv=%s\n' "$PV" | tee -a "$GITHUB_OUTPUT"
81
89
82
90
- name : Install Cygwin build requirements
83
91
uses : cygwin/cygwin-install-action@db475590d56881c6cef7b3f96f6f3dd9532ea1f4
You can’t perform that action at this time.
0 commit comments