Skip to content

Commit

Permalink
chore: fix workflows to use nightly (#203)
Browse files Browse the repository at this point in the history
* chore: fix workflows to use nightly

* chore: fix workflows to use nightly
  • Loading branch information
dutterbutter authored Oct 26, 2023
1 parent e9c8ee0 commit 5477ffe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-07-21
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Install mdbook
run: cargo install mdbook
run: cargo +nightly install mdbook
- name: Generate rust docs
run: |
echo "Generating docs..."
cargo doc --no-deps
cargo +nightly doc --no-deps
- name: Make index.html
run: echo '<!DOCTYPE HTML>
<html lang="en-US">
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-07-21
- name: Install target
run: rustup target add ${{ matrix.arch }}
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: false

- name: Run cargo clean
run: cargo clean

Expand Down

0 comments on commit 5477ffe

Please sign in to comment.