Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Jul 9, 2024
2 parents 99a85b3 + ca07e4b commit b6ee0c5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Doc

on:
push:
branches: [ "main" ]

env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -W unreachable-pub"
RUSTUP_MAX_RETRIES: 10

jobs:
rustdoc:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
run: rustup update --no-self-update stable

- name: Build Documentation
run: cargo doc --all --no-deps

- name: Deploy Docs
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc
force_orphan: true
11 changes: 3 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Ygen check source code

on:
push:
Expand All @@ -16,12 +16,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Check
run: cargo check --all
- name: Build
run: cargo build --all
- name: Run tests
run: cargo test --all
- run: cargo doc
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "target/doc"

0 comments on commit b6ee0c5

Please sign in to comment.