Skip to content

Commit

Permalink
Fix rustdoc CI (paritytech#3)
Browse files Browse the repository at this point in the history
* Use nightly in rustdoc CI

* Install wasm32 target

* Add rust-src component

* Add permissions write
  • Loading branch information
liuchengxu authored Jul 3, 2024
1 parent efb4c6e commit cf5438e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

permissions:
contents: write

concurrency:
group: rustdoc-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -23,6 +26,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
targets: wasm32-unknown-unknown
components: rust-src

- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
Expand All @@ -40,7 +49,7 @@ jobs:
# Build the rust crate docs
- name: Build Documentation
run: cargo -Zgitoxide -Zgit doc --all --no-deps --lib
run: cargo +nightly -Zgitoxide -Zgit doc --all --no-deps --lib
env:
RUSTDOCFLAGS: "-Z unstable-options --enable-index-page"

Expand Down

0 comments on commit cf5438e

Please sign in to comment.