Skip to content

Commit f77aba2

Browse files
committed
CI/CI bugs
1 parent 031ab5c commit f77aba2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ jobs:
168168
- name: Download artifact
169169
uses: actions/download-artifact@v4
170170
with:
171-
pattern: php-wasm-${{ matrix.libType }}-*
172-
path: ./
171+
name: php${{ matrix.phpVersion }}-node-${{ matrix.libType }}
173172
merge-multiple: true
173+
path: ./
174174

175175
- name: Install NPM packages
176176
run: npm ci

demo-node/persist/symbols.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
const php = new Php<?=vrzno_env('envName')?>({version: '<?=vrzno_env('version')?>', ini: `error_reporting = E_ALL ^ E_DEPRECATED`});
33
php.addEventListener('output', event => console.log(event.detail.map(line => line.replace(/\s+$/, '')).join('')));
44
php.addEventListener('error', event => console.error(event.detail.map(line => line.replace(/\s+$/, '')).join('')));
5-
<?php foreach(get_defined_constants() as $const => $val): ?>
6-
export const <?=$const?> = await php.x`<?=$const?>`;
7-
<?php endforeach; foreach(get_defined_functions()['internal'] as $func): ?>
5+
<?php foreach(get_defined_constants() as $const => $val):
6+
$const = str_replace('\\', '__', $const);
7+
?>export const <?=$const?> = await php.x`<?=$const?>`;
8+
<?php endforeach; foreach(get_defined_functions()['internal'] as $func):
9+
$func = str_replace('\\', '__', $func);?>
810
export const <?=$func?> = await php.x`<?=$func?>(...)`;
911
<?php endforeach; ?>

0 commit comments

Comments
 (0)