From 7cb764356509dda95db64c72068bb91186290110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Mon, 25 Apr 2022 18:40:57 +0200 Subject: [PATCH 1/2] Make nightly CI run every week Update CI Fix CI --- .github/workflows/rust.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7338d134b..978f96f5c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,10 +1,11 @@ name: Rust on: + schedule: + - cron: '0 5 * * MON' # Every Monday at 5:00am push: - branches: [ staging, trying ] + branches: [ staging, trying ] # For Bors pull_request: - branches: [ main ] env: CARGO_TERM_COLOR: always @@ -17,15 +18,21 @@ jobs: fail-fast: false matrix: os: [ubuntu-18.04, macos-latest, windows-latest] - rust: - - stable - - nightly steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - name: Run test with Rust nightly + if: github.event_name == 'schedule' + uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: ${{ matrix.rust }} + toolchain: nightly + override: true + - name: Run test with Rust stable + if: github.event_name != 'schedule' + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable override: true - name: Cache dependencies uses: Swatinem/rust-cache@v1.3.0 From ec8903048339db5db50770637c4738ac8472dea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Tue, 26 Apr 2022 17:36:04 +0200 Subject: [PATCH 2/2] Update bors toml --- .github/workflows/rust.yml | 2 +- bors.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 978f96f5c..f59a1e9a8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,7 +12,7 @@ env: jobs: tests: - name: Tests on ${{ matrix.os }} with ${{ matrix.rust }} + name: Tests on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/bors.toml b/bors.toml index 717fd69d1..9b75c79d5 100644 --- a/bors.toml +++ b/bors.toml @@ -1,7 +1,7 @@ status = [ - 'Tests on ubuntu-18.04 with stable', - 'Tests on macos-latest with stable', - 'Tests on windows-latest with stable', + 'Tests on ubuntu-18.04', + 'Tests on macos-latest', + 'Tests on windows-latest', 'Run Rustfmt', ] # 3 hours timeout