File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 76
76
name : rustpython-release-${{ runner.os }}-${{ matrix.platform.target }}
77
77
path : target/rustpython-release-${{ runner.os }}-${{ matrix.platform.target }}*
78
78
79
+ build-wasm :
80
+ runs-on : ubuntu-latest
81
+ steps :
82
+ - uses : actions/checkout@v4
83
+ - uses : dtolnay/rust-toolchain@stable
84
+
85
+ - name : Set up Environment
86
+ shell : bash
87
+ run : rustup target add wasm32-wasi
88
+
89
+ - name : Build RustPython
90
+ run : cargo build --target wasm32-wasi --no-default-features --features freeze-stdlib,stdlib --release
91
+
92
+ - name : Rename Binary
93
+ run : cp target/wasm32-wasi/release/rustpython.wasm target/rustpython-release-wasm32-wasi.wasm
94
+
95
+ - name : Upload Binary Artifacts
96
+ uses : actions/upload-artifact@v4
97
+ with :
98
+ name : rustpython-release-wasm32-wasi
99
+ path : target/rustpython-release-wasm32-wasi.wasm
100
+
79
101
release :
80
102
runs-on : ubuntu-latest
81
- needs : build
103
+ needs : [ build, build-wasm]
82
104
steps :
83
105
- name : Download Binary Artifacts
84
106
uses : actions/download-artifact@v4
You can’t perform that action at this time.
0 commit comments