-
Notifications
You must be signed in to change notification settings - Fork 185
78 lines (73 loc) · 2.14 KB
/
Copy pathenzyme-bazel.yml
File metadata and controls
78 lines (73 loc) · 2.14 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Bazel
on:
schedule:
- cron: 0 0 * * *
push:
branches:
- main
paths:
- '.github/workflows/enzyme-bazel.yml'
- 'enzyme/Enzyme/**'
- 'enzyme/includes/**'
- 'enzyme/test/**'
- 'enzyme/tools/**'
- 'enzyme/BUILD'
- 'enzyme/WORKSPACE'
pull_request:
branches:
- main
paths:
- '.github/workflows/enzyme-bazel.yml'
- 'enzyme/Enzyme/**'
- 'enzyme/includes/**'
- 'enzyme/test/**'
- 'enzyme/tools/**'
- 'enzyme/BUILD'
- 'enzyme/WORKSPACE'
merge_group:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
build:
name: Enzyme Bazel Build - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
- linux-x86-n2-32
build:
- Release
llbuild:
- Release
timeout-minutes: 500
container:
image: ${{ (contains(matrix.os, 'linux') && 'ghcr.io/enzymead/reactant-docker-images@sha256:91e1edb7a7c869d5a70db06e417f22907be0e67ca86641d48adcea221fedc674' ) || '' }}
steps:
- name: Install Python dependencies
run: python -m pip install lit
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: 'llvm/llvm-project'
path: 'llvm-project'
- uses: bazel-contrib/setup-bazel@0.14.0
name: Set up Bazel
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}-${{ matrix.os }}-${{ matrix.build }}-${{ matrix.llbuild }}
# Share repository cache between workflows.
repository-cache: true
bazelisk-version: 1.x
- name: Build Enzyme
run: |
cd enzyme
bazel build --color=yes :EnzymeStatic :enzymemlir-opt
- name: Test Enzyme
run: |
cd enzyme
bazel test --color=yes --test_output=errors ...