mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-11-16 15:58:14 +00:00
ca3b149b39
Some checks failed
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* ci: fix book ci * ci: add `--locked`
40 lines
No EOL
1,007 B
YAML
40 lines
No EOL
1,007 B
YAML
# This action attempts to build the Monero book, if changed.
|
|
|
|
name: Monero mdBook
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
paths: ['books/protocol/**']
|
|
pull_request:
|
|
paths: ['books/protocol/**']
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
# Version of `mdbook` to install.
|
|
MDBOOK_VERSION: 0.4.36
|
|
# Version of `mdbook-svgbob` to install.
|
|
# <https://github.com/boozook/mdbook-svgbob>.
|
|
MDBOOK_SVGBOB_VERSION: 0.2.1
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/mdbook
|
|
~/.cargo/bin/mdbook-svgbob
|
|
key: monero-book
|
|
|
|
- name: Install mdBook
|
|
run: |
|
|
cargo install --locked --version ${MDBOOK_VERSION} mdbook || echo "mdbook already exists"
|
|
cargo install --locked --version ${MDBOOK_SVGBOB_VERSION} mdbook-svgbob || echo "mdbook-svgbob already exists"
|
|
|
|
- name: Build
|
|
run: mdbook build books/protocol |