mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Add tests with rust nightly in CI
This commit is contained in:
parent
ff595156d7
commit
b095325bf8
13
.github/workflows/rust.yml
vendored
13
.github/workflows/rust.yml
vendored
@ -2,6 +2,9 @@ name: Rust
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
# Everyday at 5:00am
|
||||||
|
- cron: '0 5 * * *'
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
# trying and staging branches are for Bors config
|
# trying and staging branches are for Bors config
|
||||||
@ -27,10 +30,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y curl
|
apt-get update && apt-get install -y curl
|
||||||
apt-get install build-essential -y
|
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:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
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
|
# Disable cache due to disk space issues with Windows workers in CI
|
||||||
# - name: Cache dependencies
|
# - name: Cache dependencies
|
||||||
# uses: Swatinem/rust-cache@v2.2.0
|
# uses: Swatinem/rust-cache@v2.2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user