Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Darwin Boersma <[email protected]>
  • Loading branch information
ogghead committed Dec 8, 2024
1 parent 791ef83 commit 6d487c8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 86 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
43 changes: 0 additions & 43 deletions .github/workflows/release-leptos-spin-macro.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/release-leptos-spin.yml

This file was deleted.

0 comments on commit 6d487c8

Please sign in to comment.