forked from OpenPRoT/openprot
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.19 KB
/
nightly.yml
File metadata and controls
57 lines (47 loc) · 1.19 KB
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
# Licensed under the Apache-2.0 license
name: Nightly
on:
schedule:
- cron: '0 2 * * *' # Run every day at 2 AM UTC
workflow_dispatch: # Allow manual triggering
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
nightly-build:
name: Nightly Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.18.0
with:
bazelisk-cache: true
disk-cache: true
repository-cache: true
- name: Build
run: |
bazel build \
--keep_going \
--build_tag_filters=-hardware,-disabled \
//...
nightly-test:
name: Nightly Test
needs: nightly-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.18.0
with:
bazelisk-cache: true
disk-cache: true
repository-cache: true
- name: Run tests
run: |
bazel test \
--keep_going \
--test_output=streamed \
--build_tag_filters=-hardware,-disabled \
--test_tag_filters=-hardware,-disabled \
//...