-
Notifications
You must be signed in to change notification settings - Fork 111
51 lines (44 loc) · 1.21 KB
/
enzyme-bazel.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
name: Bazel
on:
schedule:
- cron: 0 0 * * *
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
jobs:
build-linux:
name: Bazel ${{ matrix.build }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: ["Release"]
llbuild: ["Release"]
os: [openstack22]
timeout-minutes: 500
steps:
- name: add llvm
run: |
sudo rm -f /etc/apt/sources.list.d/*llvm*.list
sudo apt-get update
sudo apt-get install -y ninja-build git autoconf cmake gcc g++ libtool python3 python3-dev
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: 'llvm/llvm-project'
path: 'llvm-project'
submodules: true
- name: Install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: cmake
run: |
cd enzyme
"${GITHUB_WORKSPACE}/bin/bazel" build :EnzymeStatic