-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathbazel-5.yaml
54 lines (45 loc) · 1.28 KB
/
bazel-5.yaml
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
package:
name: bazel-5
version: 5.4.1
epoch: 1
description: Bazel is an open-source build and test tool
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- bash
- build-base
- busybox
- ca-certificates-bundle
- gcc-6
- libstdc++-6
- libstdc++-6-dev
- openjdk-11
- python3
- zip
pipeline:
- uses: fetch
with:
expected-sha256: dcff6935756aa7aca4fc569bb2bd26e1537f0b1f6d1bda5f2b200fa835cc507f
uri: https://github.com/bazelbuild/bazel/releases/download/${{package.version}}/bazel-${{package.version}}-dist.zip
extract: false
- runs: unzip bazel-${{package.version}}-dist.zip
- uses: patch
with:
patches: 0002-Prefer-local_jdk-instead-of-remote_jdk11.patch
- runs: |
mkdir -p $HOME/.cache/bazel/_bazel_root
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
export CC=gcc-6.5 CXX=g++-6.5
EMBED_LABEL=${{package.version}}-${{package.epoch}} \
EXTRA_BAZEL_ARGS=--tool_java_runtime_version=local_jdk \
./compile.sh
./output/bazel clean --expunge
mkdir -p ${{targets.destdir}}/usr/bin
cp ./output/bazel ${{targets.destdir}}/usr/bin/
update:
enabled: true
github:
identifier: bazelbuild/bazel
tag-filter: "5."