-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (55 loc) · 1.83 KB
/
nigthtly-ci.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
48
49
50
51
52
53
54
55
56
57
name: Nightlies
on:
schedule:
# runs every day at 1:45 UTC
- cron: "45 01 * * *"
workflow_dispatch:
jobs:
update_build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["stable", "nightly"]
steps:
- name: Checkout tiledb-rs
uses: actions/checkout@v4
- name: Install Rust ${{ matrix.version }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
components: clippy, rustfmt
- name: Install TileDB
uses: ./.github/actions/install-tiledb
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check Formatting
run: cargo fmt --quiet --check
- name: Update Dependencies
run: cargo update --recursive
- name: Lint
if: ${{ matrix.version != 'nightly' }}
run: cargo clippy --all-targets --all-features -- -Dwarnings
- name: Lint
if: ${{ matrix.version == 'nightly' }}
# The nightly complier/clippy complain about the proptest derive
# macros. Originally I disabled via `--cfg` but now a new lint warns
# on that approach. So I'm just disabling the particular lint globally.
run: cargo clippy --all-targets --all-features -- --allow non_local_definitions -Dwarnings
- name: Build
run: cargo build --all-targets --all-features
- name: Test
run: cargo test --all-targets --all-features
create_issue_on_fail:
permissions:
issues: write
runs-on: ubuntu-latest
needs: update_build_and_test
if: failure() || cancelled()
steps:
- uses: actions/checkout@v3
- name: Create Issue on Failure
uses: TileDB-Inc/github-actions/open-issue@main
with:
name: Nightly Build Failure
label: nightly-failure
assignee: davisp,rroelke