-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ogghead/add-ci
Add CI workflow
- Loading branch information
Showing
3 changed files
with
39 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/cargo-binstall@v1.10.16 | ||
- name: Install cargo-leptos | ||
run: cargo binstall cargo-leptos@0.2.22 | ||
- 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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.