Skip to content

Commit 993575d

Browse files
committed
merged build and deployment to single workflow
1 parent 9233c15 commit 993575d

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

.github/workflows/rust.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/static.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
1111

12+
env:
13+
CARGO_TERM_COLOR: always
14+
1215
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1316
permissions:
1417
contents: read
@@ -31,6 +34,12 @@ jobs:
3134
steps:
3235
- name: Checkout
3336
uses: actions/checkout@v3
37+
- name: Install wasm toolchain
38+
run: rustup target add wasm32-unknown-unknown
39+
- name: Build
40+
run: cargo build --verbose --release --target wasm32-unknown-unknown
41+
- name: Copy .wasm to root
42+
run: cp target/wasm32-unknown-unknown/release/nemu.wasm nemu.wasm
3443
- name: Setup Pages
3544
uses: actions/configure-pages@v3
3645
- name: Upload artifact

0 commit comments

Comments
 (0)