ci: fix book CI (#252)
Some checks are pending
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / ci (macos-latest, stable, bash) (push) Waiting to run
CI / ci (ubuntu-latest, stable, bash) (push) Waiting to run
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Waiting to run
Doc / build (push) Waiting to run
Doc / deploy (push) Blocked by required conditions

* ci: fix book ci

* ci: add `--locked`
This commit is contained in:
hinto-janai 2024-08-09 15:44:53 -04:00 committed by GitHub
parent 0041650fd1
commit ca3b149b39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 12 deletions

View file

@ -4,8 +4,11 @@ name: Architecture mdBook
on: on:
push: push:
paths: branches: ['main']
- 'books/architecture/**' paths: ['books/architecture/**']
pull_request:
paths: ['books/architecture/**']
workflow_dispatch:
env: env:
# Version of `mdbook` to install. # Version of `mdbook` to install.
@ -30,8 +33,8 @@ jobs:
- name: Install mdBook - name: Install mdBook
run: | run: |
cargo install --version ${MDBOOK_VERSION} mdbook cargo install --locked --version ${MDBOOK_VERSION} mdbook || echo "mdbook already exists"
cargo install --version ${MDBOOK_LAST_CHANGED_VERSION} mdbook-last-changed cargo install --locked --version ${MDBOOK_LAST_CHANGED_VERSION} mdbook-last-changed || echo "mdbook-last-changed already exists"
- name: Build - name: Build
run: mdbook build books/architecture run: mdbook build books/architecture

View file

@ -7,6 +7,7 @@ on:
paths: paths:
- '**/Cargo.toml' - '**/Cargo.toml'
- '**/Cargo.lock' - '**/Cargo.lock'
workflow_dispatch:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always

View file

@ -7,6 +7,7 @@ on:
paths: paths:
- '**/Cargo.toml' - '**/Cargo.toml'
- '**/Cargo.lock' - '**/Cargo.lock'
workflow_dispatch:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always

View file

@ -4,8 +4,11 @@ name: Monero mdBook
on: on:
push: push:
paths: branches: ['main']
- 'books/protocol/**' paths: ['books/protocol/**']
pull_request:
paths: ['books/protocol/**']
workflow_dispatch:
env: env:
# Version of `mdbook` to install. # Version of `mdbook` to install.
@ -30,8 +33,8 @@ jobs:
- name: Install mdBook - name: Install mdBook
run: | run: |
cargo install --version ${MDBOOK_VERSION} mdbook cargo install --locked --version ${MDBOOK_VERSION} mdbook || echo "mdbook already exists"
cargo install --version ${MDBOOK_SVGBOB_VERSION} mdbook-svgbob cargo install --locked --version ${MDBOOK_SVGBOB_VERSION} mdbook-svgbob || echo "mdbook-svgbob already exists"
- name: Build - name: Build
run: mdbook build books/protocol run: mdbook build books/protocol

View file

@ -4,8 +4,11 @@ name: User mdBook
on: on:
push: push:
paths: branches: ['main']
- 'books/user/**' paths: ['books/user/**']
pull_request:
paths: ['books/user/**']
workflow_dispatch:
env: env:
# Version of `mdbook` to install. # Version of `mdbook` to install.
@ -30,8 +33,8 @@ jobs:
- name: Install mdBook - name: Install mdBook
run: | run: |
cargo install --version ${MDBOOK_VERSION} mdbook cargo install --locked --version ${MDBOOK_VERSION} mdbook || echo "mdbook already exists"
cargo install --version ${MDBOOK_LAST_CHANGED_VERSION} mdbook-last-changed cargo install --locked --version ${MDBOOK_LAST_CHANGED_VERSION} mdbook-last-changed || echo "mdbook-last-changed already exists"
- name: Build - name: Build
run: mdbook build books/user run: mdbook build books/user