diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efb17b775..4563e1d40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,24 @@ jobs: - name: Generate documentation run: cargo doc --all + doc-nightly: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Cache setup + uses: ./.github/actions/cache-setup + + - name: Install cargo-deadlinks + run: which deadlinks || cargo install cargo-deadlinks + + - name: Generate documentation + run: | + rustup install nightly + cargo +nightly doc --all + # temporarily disabled. # - name: Validate links # run: cargo deadlinks --dir target/doc/glommio @@ -54,8 +72,9 @@ jobs: uses: ./.github/actions/cache-setup - name: Build all targets on the nigthly channel - run: cargo +nightly build --all --all-targets --features=nightly - + run: > + rustup install nightly; + cargo +nightly build --all --all-targets --features=nightly test: runs-on: ubuntu-latest @@ -100,6 +119,7 @@ jobs: rustup install nightly rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu rustup install 1.58 + cargo install cargo-sort rustup show cargo +nightly test --features=nightly -- --test-threads=`nproc` EOF