forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbazel-6.yaml
43 lines (42 loc) · 1.19 KB
/
bazel-6.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
package:
name: bazel-6
version: 6.1.1
epoch: 0
description: Bazel is an open-source build and test tool
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- build-base
- python3
- zip
- bash
- openjdk-11
pipeline:
- uses: fetch
with:
expected-sha256: 6b900f26d676c7eca1d2e7dff9b71890dabd3ff59cab2a2d2178bc8a0395342a
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/openjdk
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
strip-prefix: v
tag-filter: "6."