2023-12-08 15:44:22 +08:00
|
|
|
name: CI
|
|
|
|
on:
|
2024-02-01 15:54:55 +08:00
|
|
|
workflow_dispatch:
|
2023-12-08 15:44:22 +08:00
|
|
|
pull_request:
|
2024-01-03 20:52:56 +08:00
|
|
|
paths: ["demo/**", "demo_markdown/**", "thaw/**"]
|
2023-12-08 15:44:22 +08:00
|
|
|
branches:
|
|
|
|
- main
|
2024-02-01 15:11:20 +08:00
|
|
|
push:
|
|
|
|
paths: ["demo/**", "demo_markdown/**", "thaw/**"]
|
|
|
|
branches:
|
|
|
|
- thaw/v0.2
|
2023-12-08 15:44:22 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
stable:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
target: wasm32-unknown-unknown
|
|
|
|
override: true
|
|
|
|
- name: Install Trunk
|
|
|
|
uses: jetli/trunk-action@v0.4.0
|
|
|
|
with:
|
|
|
|
version: "latest"
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
cd demo
|
|
|
|
trunk build --release
|
|
|
|
nightly:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
target: wasm32-unknown-unknown
|
|
|
|
override: true
|
|
|
|
- name: Install Trunk
|
|
|
|
uses: jetli/trunk-action@v0.4.0
|
|
|
|
with:
|
|
|
|
version: "latest"
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
cd demo
|
|
|
|
trunk build --release --features nightly
|
2024-01-08 14:21:08 +08:00
|
|
|
stable-cargo-leptos:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
target: wasm32-unknown-unknown
|
|
|
|
override: true
|
|
|
|
- name: Install Trunk
|
|
|
|
uses: jetli/trunk-action@v0.4.0
|
|
|
|
with:
|
|
|
|
version: "latest"
|
2024-02-01 15:11:20 +08:00
|
|
|
- name: Install Cargo BInstall
|
|
|
|
uses: cargo-bins/cargo-binstall@main
|
|
|
|
- name: Install Cargo Leptos
|
2024-02-01 15:54:55 +08:00
|
|
|
run: cargo binstall cargo-leptos -y
|
2024-01-08 14:21:08 +08:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
cd ./examples/ssr_axum
|
|
|
|
cargo leptos build --release
|
2024-02-25 01:15:18 +08:00
|
|
|
nightly-cargo-leptos:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
target: wasm32-unknown-unknown
|
|
|
|
override: true
|
|
|
|
- name: Install Trunk
|
|
|
|
uses: jetli/trunk-action@v0.4.0
|
|
|
|
with:
|
|
|
|
version: "latest"
|
|
|
|
- name: Install Cargo BInstall
|
|
|
|
uses: cargo-bins/cargo-binstall@main
|
|
|
|
- name: Install Cargo Leptos
|
|
|
|
run: cargo binstall cargo-leptos -y
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
cd ./examples/ssr_axum
|
|
|
|
cargo leptos build --release --features nightly
|