From 5477ffe0c455bc611bde28ad4422d3395e1dd08b Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 26 Oct 2023 14:42:40 -0500 Subject: [PATCH] chore: fix workflows to use nightly (#203) * chore: fix workflows to use nightly * chore: fix workflows to use nightly --- .github/workflows/docs.yaml | 10 ++++++++-- .github/workflows/release.yml | 11 ++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index ff457b80..5458f988 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -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 ' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bdcadb5e..67154c52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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