File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments