Skip to content

Commit c0c9ed6

Browse files
committed
CI/CD Tweaks.
1 parent f77aba2 commit c0c9ed6

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/test-node-step.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,30 @@ jobs:
3030
- name: Download artifact
3131
uses: actions/download-artifact@v4
3232
with:
33-
name: php${{ inputs.phpVersion }}-node-${{ inputs.libType }}
33+
pattern: php${{ inputs.phpVersion }}-*-${{ inputs.libType }}
3434
merge-multiple: true
3535
path: ./
3636

37+
- name: Cache Docker image
38+
id: cache-docker-image
39+
uses: actions/cache@v3
40+
with:
41+
path: /tmp/builder-image.tar
42+
key: ${{ runner.os }}-docker-${{ hashFiles('emscripten-builder.dockerfile') }}
43+
44+
- name: Load builder image if cached
45+
if: steps.cache-docker-image.outputs.cache-hit == 'true'
46+
run: docker load -i /tmp/builder-image.tar
47+
48+
- name: Create builder image (if not cached)
49+
if: steps.cache-docker-image.outputs.cache-hit != 'true'
50+
run: |
51+
time make image
52+
docker save -o /tmp/builder-image.tar seanmorris/php-emscripten-builder:latest
53+
54+
- name: Spin up docker-network
55+
run: docker network create phpwasm_default
56+
3757
- name: npm install
3858
run: |
3959
npm ci

demo-web/package.local.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"dependencies": {
33
"pdo-pglite": "../packages/pdo-pglite",
44
"php-cgi-wasm": "../packages/php-cgi-wasm",
5+
"php-cli-wasm": "../packages/php-cli-wasm",
56
"php-dbg-wasm": "../packages/php-dbg-wasm",
67
"php-wasm": "../packages/php-wasm",
78
"php-wasm-dom": "../packages/dom",

0 commit comments

Comments
 (0)