@@ -47,26 +47,13 @@ jobs:
4747 restore-keys : |
4848 ${{ runner.os }}-emscripten-
4949
50- - name : Cache OpenSSL
51- uses : actions/cache@v3
52- with :
53- path : openssl-wasm
54- key : ${{ runner.os }}-openssl-3.3.2-wasm
55- restore-keys : |
56- ${{ runner.os }}-openssl-
57-
58- - name : Build OpenSSL
50+ - name : Build WASM: OpenSSL + SQLCipher
5951 run : |
60- if [ ! -d "openssl-wasm/lib" ]; then
61- echo "Building OpenSSL for WASM..."
62- nix develop --command bash -c "./build-openssl.sh"
63- else
64- echo "Using cached OpenSSL"
65- fi
66-
67- - name : Build WASM
52+ nix develop --command bash -c "./build-openssl.sh && ./build-wasm.sh"
53+
54+ - name : Build WebGL: OpenSSL + SQLCipher
6855 run : |
69- nix develop --command bash -c "./build.sh"
56+ nix develop .#webgl --command bash -c "./build-openssl.sh && ./build-webgl .sh"
7057
7158 - name : Prepare cross-platform test
7259 run : |
@@ -86,14 +73,21 @@ jobs:
8673 test -f dist/sqlcipher.cjs
8774 test -f dist/sqlcipher.mjs
8875 test -f dist/sqlcipher.wasm
76+ test -f target/results/sqlcipher-wasm.zip
77+ test -f target/results/sqlcipher-webgl.zip
8978
90- - name : Upload build artifacts
79+ - name : Upload WASM archive
9180 uses : actions/upload-artifact@v4
9281 with :
93- name : wasm-build
94- path : |
95- dist/
96- lib/
82+ name : sqlcipher-wasm
83+ path : target/results/sqlcipher-wasm.zip
84+ retention-days : 30
85+
86+ - name : Upload WebGL archive
87+ uses : actions/upload-artifact@v4
88+ with :
89+ name : sqlcipher-webgl
90+ path : target/results/sqlcipher-webgl.zip
9791 retention-days : 30
9892
9993 - name : Upload test results
@@ -121,7 +115,6 @@ jobs:
121115 uses : softprops/action-gh-release@v1
122116 with :
123117 files : |
124- dist/sqlcipher.cjs
125- dist/sqlcipher.mjs
126- dist/sqlcipher.wasm
118+ target/results/sqlcipher-wasm.zip
119+ target/results/sqlcipher-webgl.zip
127120 generate_release_notes : true
0 commit comments