From b095325bf8cbde54139210b51009de33a6471c87 Mon Sep 17 00:00:00 2001 From: Kebron Date: Wed, 15 Feb 2023 00:23:02 +0900 Subject: [PATCH] Add tests with rust nightly in CI --- .github/workflows/rust.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1752739bc..5f783ca9e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,6 +2,9 @@ name: Rust on: workflow_dispatch: + schedule: + # Everyday at 5:00am + - cron: '0 5 * * *' pull_request: push: # trying and staging branches are for Bors config @@ -27,10 +30,18 @@ jobs: run: | apt-get update && apt-get install -y curl apt-get install build-essential -y - - uses: actions-rs/toolchain@v1 + - name: Run test with Rust stable + if: github.event_name != 'schedule' + uses: actions-rs/toolchain@v1 with: toolchain: stable override: true + - name: Run test with Rust nightly + if: github.event_name == 'schedule' + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true # Disable cache due to disk space issues with Windows workers in CI # - name: Cache dependencies # uses: Swatinem/rust-cache@v2.2.0