forked from google/xls
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.3 KB
/
one-bazel-test-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
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
# See also: https://github.com/marketplace/actions/bazel-action
name: Solo Bazel Test (Ubuntu 22.04)
on:
workflow_dispatch:
inputs:
target:
description: 'Bazel Target Pattern'
default: '//xls/dslx:interpreter_test'
required: true
runs_per_test:
description: 'Number of Runs'
default: '1'
required: true
env:
BAZEL_TARGET: ${{ github.event.inputs.target }}
BAZEL_RUNS_PER_TEST: ${{ github.event.inputs.runs_per_test }}
jobs:
build:
name: Bazel Test (opt)
runs-on:
labels: ubuntu-22.04-64core
timeout-minutes: 600
steps:
- uses: actions/checkout@v2
- name: Restore Nightly Bazel Cache
uses: actions/cache/restore@v4
with:
path: "~/.cache/bazel"
key: bazel-cache-nightly-${{ runner.os }}-${{ github.sha }}
restore-keys: bazel-cache-nightly-${{ runner.os }}-
- 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 Test Target (opt)
run: |
bazel test -c opt --test_output=all --runs_per_test=$BAZEL_RUNS_PER_TEST -- $BAZEL_TARGET