-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
429 additions
and
817 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ name: GitHub Pages | |
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
DIOXUS_VERSION: 0.6.0 | ||
|
||
on: | ||
push: | ||
|
@@ -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 |
Oops, something went wrong.