Skip to content

Commit

Permalink
oh my god nevermind its rust compile times
Browse files Browse the repository at this point in the history
we are caching this shit gentlemen
  • Loading branch information
mirrorcult committed Sep 10, 2023
1 parent d4c68b0 commit 1c598fe
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/mdBook.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy mdBook site to Pages
name: Build mdBook Site & Deploy if Necessary

on:
# Run on all pushes -- we check for only running on deploy later
Expand Down Expand Up @@ -30,15 +30,30 @@ jobs:
MDBOOK_TEMPLATE_VERSION: 1.1.0
steps:
- uses: actions/checkout@v3
- name: Install mdBook
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
cargo install --version ${MDBOOK_VERSION} mdbook
cargo install --version ${MDBOOK_ADMONISH_VERSION} mdbook-admonish
cargo install --version ${MDBOOK_LINKCHECK_VERSION} mdbook-linkcheck
cargo install --version ${MDBOOK_MERMAID_VERSION} mdbook-mermaid
cargo install --version ${MDBOOK_TEMPLATE_VERSION} mdbook-template
- name: Install mdbook
uses: taiki-e/[email protected]
with:
tool: mdbook@${MDBOOK_VERSION}
- name: Install mdbook-admonish
uses: taiki-e/[email protected]
with:
tool: mdbook-admonish@${MDBOOK_ADMONISH_VERSION}
- name: Install mdbook-linkcache
uses: taiki-e/[email protected]
with:
tool: mdbook-linkcheck@${MDBOOK_LINKCHECK_VERSION}
- name: Install mdbook-mermaid
uses: taiki-e/[email protected]
with:
tool: mdbook-mermaid@${MDBOOK_MERMAID_VERSION}
- name: Install mdbook-template
uses: taiki-e/[email protected]
with:
tool: mdbook-template@${MDBOOK_TEMPLATE_VERSION}
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
Expand Down

0 comments on commit 1c598fe

Please sign in to comment.