forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bazel-6.yaml
36 lines (36 loc) · 1.08 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
package:
name: bazel-6
version: 6.0.0
epoch: 3
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: 7bc0c5145c19a56d82a08fce6908c5e1a0e75e4fbfb3b6f12b4deae7f4b38cbc
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/