-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.22 KB
/
nightly.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
43
44
45
46
47
name: Nightly
env:
CARGO_TERM_COLOR: always
on:
schedule:
- cron: "30 21 * * *" # 9:30pm UTC
jobs:
rust:
name: Rust
strategy:
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
toolchain: [nightly, stable]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: setup langspace
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: |
sudo apt install -y protobuf-compiler
rustup default ${{ matrix.toolchain }}
- name: Build (workspace)
run: cargo build --release -v --workspace
- name: Bench (workspace)
run: cargo bench -v --workspace
- name: Test (all)
run: cargo test --all --all-features -v
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
target/release/contained
draft: true
prerelease: true