File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 19
19
MSRV :
20
20
required : true
21
21
type : string
22
+ verbose :
23
+ type : boolean
24
+ default : false
22
25
23
26
jobs :
24
27
build :
66
69
run : |
67
70
echo "CARGO_BUILD_TARGET=i686-pc-windows-msvc" >> $GITHUB_ENV
68
71
72
+ - name : Install zoneinfo backport for Python 3.7 / 3.8
73
+ if : contains(fromJSON('["3.7", "3.8"]'), inputs.python-version)
74
+ run : python -m pip install backports.zoneinfo
75
+
69
76
- uses : Swatinem/rust-cache@v2
70
77
with :
71
78
save-if : ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
86
93
if : ${{ inputs.rust == 'stable' && !startsWith(inputs.python-version, 'graalpy') }}
87
94
id : ffi-changes
88
95
with :
89
- base : ${{ github.event.pull_request.base.ref || github.event. merge_group.base_ref }}
90
- ref : ${{ github.event.pull_request.head.ref || github.event. merge_group.head_ref }}
96
+ base : ${{ github.event.merge_group.base_ref }}
97
+ ref : ${{ github.event.merge_group.head_ref }}
91
98
filters : |
92
99
changed:
93
100
- 'pyo3-ffi/**'
@@ -142,7 +149,7 @@ jobs:
142
149
token : ${{ secrets.CODECOV_TOKEN }}
143
150
144
151
env :
145
- CARGO_TERM_VERBOSE : true
152
+ CARGO_TERM_VERBOSE : ${{ inputs.verbose }}
146
153
RUST_BACKTRACE : 1
147
154
RUSTFLAGS : " -D warnings"
148
155
RUSTDOCFLAGS : " -D warnings"
Original file line number Diff line number Diff line change 37
37
runs-on : ubuntu-latest
38
38
outputs :
39
39
MSRV : ${{ steps.resolve-msrv.outputs.MSRV }}
40
+ verbose : ${{ runner.debug == '1' }}
40
41
steps :
41
42
- uses : actions/checkout@v4
42
43
- uses : actions/setup-python@v5
@@ -175,6 +176,7 @@ jobs:
175
176
rust : ${{ matrix.rust }}
176
177
rust-target : ${{ matrix.platform.rust-target }}
177
178
MSRV : ${{ needs.resolve.outputs.MSRV }}
179
+ verbose : ${{ needs.resolve.outputs.verbose == 'true' }}
178
180
secrets : inherit
179
181
strategy :
180
182
# If one platform fails, allow the rest to keep testing if `CI-no-fail-fast` label is present
@@ -248,6 +250,7 @@ jobs:
248
250
rust : ${{ matrix.rust }}
249
251
rust-target : ${{ matrix.platform.rust-target }}
250
252
MSRV : ${{ needs.resolve.outputs.MSRV }}
253
+ verbose : ${{ needs.resolve.outputs.verbose == 'true' }}
251
254
secrets : inherit
252
255
strategy :
253
256
# If one platform fails, allow the rest to keep testing if `CI-no-fail-fast` label is present
You can’t perform that action at this time.
0 commit comments