Skip to content

Commit f11920b

Browse files
committed
fix: ci
1 parent ce542ce commit f11920b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ jobs:
169169
run: cargo build --release --locked
170170
env:
171171
EXT_PHP_RS_PHP_CONFIG: ${{ steps.php.outputs.php_config }}
172-
env:
173-
EXT_PHP_RS_PHP_CONFIG: ${{ steps.php.outputs.php_config }}
174172

175173
- name: Package artifact
176174
run: |
@@ -208,6 +206,10 @@ jobs:
208206
tools: phpize, php-config, composer
209207
coverage: none
210208

209+
- name: Resolve php-config
210+
id: php
211+
run: echo "php_config=$(command -v php-config)" >> "$GITHUB_OUTPUT"
212+
211213
- name: Install Rust toolchain
212214
uses: dtolnay/rust-toolchain@stable
213215
with:
@@ -227,6 +229,8 @@ jobs:
227229
228230
- name: Cargo build (release)
229231
run: cargo build --release --locked
232+
env:
233+
EXT_PHP_RS_PHP_CONFIG: ${{ steps.php.outputs.php_config }}
230234

231235
- name: Package artifact
232236
run: |

0 commit comments

Comments
 (0)