mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-02 08:34:15 -05:00
feat: add CI workflow
This commit is contained in:
parent
ae7d881657
commit
c0f45c4325
2 changed files with 49 additions and 0 deletions
48
.github/workflows/ci.yml
vendored
Normal file
48
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
name: CI
|
||||
on:
|
||||
pull_request:
|
||||
paths: ["demo/**", "src/**", "Cargo.toml"]
|
||||
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
|
|
@ -31,3 +31,4 @@ hydrate = [
|
|||
"leptos_router/hydrate",
|
||||
"thaw/hydrate",
|
||||
]
|
||||
nightly = ["leptos/nightly", "leptos_meta/nightly", "leptos_router/nightly"]
|
||||
|
|
Loading…
Add table
Reference in a new issue