-
Notifications
You must be signed in to change notification settings - Fork 591
42 lines (39 loc) · 1.45 KB
/
nightly-rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build with Latest Nightly Rust
# Helpful to know when it does not compile.
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
root-reserve-mb: 2048
swap-size-mb: 8192
- uses: actions/checkout@v3
if: ${{ github.event_name == 'schedule' }}
with:
# For daily scheduled run, we use a fixed branch, so that we can apply patches to fix compile errors earlier.
# We can also ensure the regression is due to new rust instead of new RisingWave code.
ref: xxchan/latest-nightly-rust
- uses: actions/checkout@v3
if: ${{ !(github.event_name == 'schedule') }}
- name: Setup Rust toolchain
run: |
rustup override set nightly
rustup update nightly
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y make build-essential cmake protobuf-compiler curl openssl libssl-dev libsasl2-dev libcurl4-openssl-dev pkg-config postgresql-client tmux lld
- name: cargo check
run: |
export CARGO_INCREMENTAL=0
export CARGO_PROFILE_DEV_DEBUG=false
cargo check