mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Merge #517
517: Make nightly CI run every week r=Kerollmops a=curquiza Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
This commit is contained in:
commit
2aae19dc52
23
.github/workflows/rust.yml
vendored
23
.github/workflows/rust.yml
vendored
@ -1,31 +1,38 @@
|
|||||||
name: Rust
|
name: Rust
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * MON' # Every Monday at 5:00am
|
||||||
push:
|
push:
|
||||||
branches: [ staging, trying ]
|
branches: [ staging, trying ] # For Bors
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
name: Tests on ${{ matrix.os }} with ${{ matrix.rust }}
|
name: Tests on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-18.04, macos-latest, windows-latest]
|
os: [ubuntu-18.04, macos-latest, windows-latest]
|
||||||
rust:
|
|
||||||
- stable
|
|
||||||
- nightly
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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:
|
with:
|
||||||
profile: minimal
|
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
|
override: true
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: Swatinem/rust-cache@v1.3.0
|
uses: Swatinem/rust-cache@v1.3.0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
status = [
|
status = [
|
||||||
'Tests on ubuntu-18.04 with stable',
|
'Tests on ubuntu-18.04',
|
||||||
'Tests on macos-latest with stable',
|
'Tests on macos-latest',
|
||||||
'Tests on windows-latest with stable',
|
'Tests on windows-latest',
|
||||||
'Run Rustfmt',
|
'Run Rustfmt',
|
||||||
]
|
]
|
||||||
# 3 hours timeout
|
# 3 hours timeout
|
||||||
|
Loading…
Reference in New Issue
Block a user