Skip to content

Commit c5d768b

Browse files
chore(.github): faster actions
1 parent f391b4e commit c5d768b

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/mdbook.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ jobs:
2828
runs-on: ubuntu-latest
2929
env:
3030
MDBOOK_VERSION: 0.4.52
31+
MDBOOK_ADMONISH_VERSION: 1.20.0
3132
steps:
3233
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3334
- name: Install mdBook
3435
run: |
35-
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
36-
rustup update
37-
cargo install --version ${MDBOOK_VERSION} mdbook
38-
cargo install --version ^1 mdbook-admonish
36+
curl -sSL "https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz" | tar xz -C /usr/local/bin
37+
curl -sSL "https://github.com/tommilligan/mdbook-admonish/releases/download/v${MDBOOK_ADMONISH_VERSION}/mdbook-admonish-v${MDBOOK_ADMONISH_VERSION}-x86_64-unknown-linux-gnu.tar.gz" | tar xz -C /usr/local/bin
3938
- name: Setup Pages
4039
id: pages
4140
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
2020

2121
- name: Set up Rust
22-
uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable
22+
uses: dtolnay/rust-toolchain@stable
2323
with:
2424
targets: x86_64-unknown-linux-gnu
2525

0 commit comments

Comments
 (0)