Skip to content

Commit 1cbf883

Browse files
authored
Merge pull request #2004 from hermit-os/ci-wasm
ci: simplify WASM test
2 parents bd0f849 + 35f05c2 commit 1cbf883

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,11 @@ jobs:
213213
- run: cargo xtask ci rs --arch ${{ matrix.arch }} --profile ${{ matrix.profile }} --package hello_world qemu ${{ matrix.flags }} --uefi
214214
if: matrix.arch == 'x86_64'
215215
- run: |
216-
cargo xtask build --arch ${{ matrix.arch }} --profile ${{ matrix.profile }} --features fs
217-
cd "/home/runner/work/kernel/kernel" && cargo build --target wasm32-wasip1 -Zunstable-options --profile release --package hello_world && mkdir -p /home/runner/work/kernel/kernel/kernel/shared && cp target/wasm32-wasip1/release/hello_world.wasm /home/runner/work/kernel/kernel/kernel/shared/ && cd -
216+
cd ..
217+
cargo build --target wasm32-wasip1 --profile release --package hello_world
218+
mkdir kernel/shared
219+
cp target/wasm32-wasip1/release/hello_world.wasm kernel/shared
220+
cd kernel
218221
cargo xtask ci rs --arch ${{ matrix.arch }} --profile ${{ matrix.profile }} --package hermit-wasm --features fs qemu ${{ matrix.flags }} --devices virtio-fs-pci
219222
if: matrix.arch == 'x86_64'
220223
- run: cargo xtask ci rs --arch ${{ matrix.arch }} --profile ${{ matrix.profile }} --package hello_world --no-default-features qemu ${{ matrix.flags }} --microvm

0 commit comments

Comments
 (0)