Skip to content

Commit

Permalink
chore(deps): Dioxus 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed Dec 9, 2024
1 parent d19f70c commit 616c838
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 817 deletions.
File renamed without changes.
65 changes: 41 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,39 @@ name: CI

env:
CARGO_TERM_COLOR: always
DIOXUS_VERSION: 0.6.0

on:
push:
branches:
- main
- main
pull_request: {}
workflow_dispatch: null

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo clippy --all-targets --all-features -- -D warnings
- name: rustfmt
run: cargo fmt --all --check
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo clippy --all-targets --all-features -- -D warnings
- name: rustfmt
run: cargo fmt --all --check

check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: cargo doc
env:
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"
run: cargo doc --all-features --no-deps
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: cargo doc
env:
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"
run: cargo doc --all-features --no-deps

test-versions:
needs: check
Expand All @@ -42,10 +43,26 @@ jobs:
matrix:
rust: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all-features --all-targets
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all-features --all-targets

dioxus:
needs: test-versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Setup cargo-binstall
uses: cargo-bins/[email protected]
- name: Install Dioxus
run: cargo binstall dioxus-cli@${{ env.DIOXUS_VERSION }} --force --no-confirm
- name: Build app
run: dx build
33 changes: 19 additions & 14 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: GitHub Pages

env:
CARGO_TERM_COLOR: always
DIOXUS_VERSION: 0.6.0

on:
push:
Expand All @@ -16,17 +17,21 @@ jobs:
contents: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Install Dioxus
run: cargo install dioxus-cli
- name: Build app
run: dx build --release
- name: Deploy Project 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Setup cargo-binstall
uses: cargo-bins/[email protected]
- name: Install Dioxus
run: cargo binstall dioxus-cli@${{ env.DIOXUS_VERSION }} --force --no-confirm
- name: Build app
run: dx build --release
- name: Copy output
run: cp -r target/dx/stoic-quotes/release/web/public docs
- name: Deploy Project 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
Loading

0 comments on commit 616c838

Please sign in to comment.