thaw/.github/workflows/ci.yml

70 lines
2 KiB
YAML
Raw Normal View History

2023-12-08 15:44:22 +08:00
name: CI
on:
pull_request:
paths: ["demo/**", "demo_markdown/**", "thaw/**"]
2023-12-08 15:44:22 +08:00
branches:
- main
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"
- name: Build
run: |
cd ./examples/ssr_axum
cargo install --locked cargo-leptos
2024-01-08 14:21:08 +08:00
cargo leptos build --release