forked from google/xls
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.67 KB
/
nightly-ubuntu-22.04.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
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
# See also: https://github.com/marketplace/actions/bazel-action
name: Nightly Ubuntu 22.04
on:
schedule:
# Nightly at midnight -- uses UTC, so 7am.
- cron: '0 7 * * *'
# This lets us trigger manually from the UI.
workflow_dispatch:
jobs:
build:
name: Nightly Ubuntu 22.04
runs-on:
labels: ubuntu-22.04-64core
steps:
- uses: actions/checkout@v2
- name: Install dependencies via apt
run: sudo apt-get install python3-distutils python3-dev python-is-python3 libtinfo5 build-essential liblapack-dev libblas-dev gfortran
- name: Bazel fetch
# Let's fetch all WORKSPACE artifacts to see if they can resolve fully
run: |
bazel fetch //...
- name: Bazel Test All (opt)
run: |
bazel test -c opt -- //xls/...
- name: Clean Bazel Cache
run: |
# display bazel download cache size.
du -sh $(bazel info repository_cache)
# delete bazel download cache.
rm -r $(bazel info repository_cache)
# delete asap7 from bazel cache.
rm -r ~/.cache/bazel/*/external/org_theopenroadproject_asap7*/
# delete jdk from bazel cache.
rm -r ~/.cache/bazel/*/external/remotejdk11_linux/
# breakdown remaining bazel cache size.
du -h -t 200M ~/.cache/bazel/*/ | sort -hr
# used by `continuous-integration` and `one-bazel-test-` workflows.
- name: Save Bazel Cache
uses: actions/cache/save@v4
with:
path: "~/.cache/bazel"
key: bazel-cache-nightly-${{ runner.os }}-${{ github.sha }}