Skip to content

Commit bac4c87

Browse files
committed
Add CI job that builds artifacts
Signed-off-by: Doru Blânzeanu <dblnz@pm.me>
1 parent 1e70357 commit bac4c87

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install system dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y clang
19+
20+
- name: Install Rust toolchain
21+
uses: dtolnay/rust-toolchain@stable
22+
with:
23+
toolchain: "1.89.0"
24+
targets: wasm32-wasip1, x86_64-unknown-none
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: "lts/*"
30+
cache: npm
31+
32+
- name: Install just
33+
uses: extractions/setup-just@v2
34+
35+
- name: Install cargo-component
36+
run: cargo install cargo-component
37+
38+
- name: Install npm dependencies
39+
run: npm install
40+
41+
- name: Build host and components
42+
run: |
43+
just build
44+
just build-rust-component
45+
just build-js-component

0 commit comments

Comments
 (0)