-
Notifications
You must be signed in to change notification settings - Fork 20
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
602 changed files
with
38,501 additions
and
22,418 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This action attempts to build the architecture book, if changed. | ||
|
||
name: Architecture mdBook | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
paths: ['books/architecture/**'] | ||
pull_request: | ||
paths: ['books/architecture/**'] | ||
workflow_dispatch: | ||
|
||
env: | ||
# Version of `mdbook` to install. | ||
MDBOOK_VERSION: 0.4.36 | ||
# Version of `mdbook-last-changed` to install. | ||
# <https://github.com/badboy/mdbook-last-changed>. | ||
MDBOOK_LAST_CHANGED_VERSION: 0.1.4 | ||
|
||
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-last-changed | ||
key: architecture-book | ||
|
||
- name: Install mdBook | ||
run: | | ||
cargo install --locked --version ${MDBOOK_VERSION} mdbook || echo "mdbook already exists" | ||
cargo install --locked --version ${MDBOOK_LAST_CHANGED_VERSION} mdbook-last-changed || echo "mdbook-last-changed already exists" | ||
- name: Build | ||
run: mdbook build books/architecture |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
paths: | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# This builds `cargo doc` and uploads it to the repo's GitHub Pages. | ||
|
||
name: Doc | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] # Only deploy if `main` changes. | ||
workflow_dispatch: | ||
|
||
env: | ||
# Show colored output in CI. | ||
CARGO_TERM_COLOR: always | ||
# Generate an index page. | ||
RUSTDOCFLAGS: '--cfg docsrs --show-type-layout --enable-index-page -Zunstable-options' | ||
|
||
jobs: | ||
# Build documentation. | ||
build: | ||
# FIXME: how to build and merge Windows + macOS docs | ||
# with Linux's? Similar to the OS toggle on docs.rs. | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
# Nightly required for some `cargo doc` settings. | ||
toolchain: nightly | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
# Don't cache actual doc files, just build files. | ||
# This is so that removed crates don't show up. | ||
path: target/debug | ||
key: doc | ||
|
||
# Packages other than `Boost` used by `Monero` are listed here. | ||
# https://github.com/monero-project/monero/blob/c444a7e002036e834bfb4c68f04a121ce1af5825/.github/workflows/build.yml#L71 | ||
|
||
- name: Install dependencies (Linux) | ||
run: sudo apt install -y libboost-dev | ||
|
||
- name: Documentation | ||
run: cargo +nightly doc --workspace --all-features | ||
|
||
- name: Upload documentation | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: target/doc/ | ||
|
||
# Deployment job. | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This action attempts to build the user book, if changed. | ||
|
||
name: User mdBook | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
paths: ['books/user/**'] | ||
pull_request: | ||
paths: ['books/user/**'] | ||
workflow_dispatch: | ||
|
||
env: | ||
# Version of `mdbook` to install. | ||
MDBOOK_VERSION: 0.4.36 | ||
# Version of `mdbook-last-changed` to install. | ||
# <https://github.com/badboy/mdbook-last-changed>. | ||
MDBOOK_LAST_CHANGED_VERSION: 0.1.4 | ||
|
||
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-last-changed | ||
key: user-book | ||
|
||
- name: Install mdBook | ||
run: | | ||
cargo install --locked --version ${MDBOOK_VERSION} mdbook || echo "mdbook already exists" | ||
cargo install --locked --version ${MDBOOK_LAST_CHANGED_VERSION} mdbook-last-changed || echo "mdbook-last-changed already exists" | ||
- name: Build | ||
run: mdbook build books/user |
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
Oops, something went wrong.