-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (39 loc) · 1.03 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "CI"
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
RUST_VERSION: "1.80.1"
SPIN_VERSION: ""
jobs:
spin:
runs-on: "ubuntu-latest"
name: Build Spin App
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "${{ env.RUST_VERSION }}"
targets: wasm32-wasip1,wasm32-unknown-unknown
- name: Install Spin
uses: fermyon/actions/spin/setup@v1
with:
plugins:
- name: Install cargo-binstall
uses: cargo-bins/[email protected]
- name: Install cargo-leptos
run: cargo binstall [email protected]
- name: Install leptos-ssr template
run: spin templates install --dir . --upgrade
working-directory: .
- name: Create app with template
run: spin new -t leptos-ssr my-leptos-app -a
working-directory: .
- name: Build app
run: spin build
working-directory: ./my-leptos-app