mirror of
https://github.com/google/cpu_features.git
synced 2025-04-27 07:02:30 +02:00
Use bazelisk instead on bazel
This commit is contained in:
parent
5d97a14add
commit
810eb5b10e
13
.github/workflows/aarch64_linux_bazel.yml
vendored
13
.github/workflows/aarch64_linux_bazel.yml
vendored
@ -14,13 +14,10 @@ jobs:
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Bazel
|
||||
- name: Install Bazel through bazelisk
|
||||
run: |
|
||||
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
|
||||
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
|
||||
echo "deb [arch=arm64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install bazel
|
||||
bazel --version
|
||||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-arm64
|
||||
chmod +x bazelisk-linux-arm64
|
||||
./bazelisk-linux-arm64 --version
|
||||
- name: Test
|
||||
run: bazel test -s --verbose_failures //...
|
||||
run: ./bazelisk-linux-arm64 test -s --verbose_failures //...
|
||||
|
13
.github/workflows/amd64_linux_bazel.yml
vendored
13
.github/workflows/amd64_linux_bazel.yml
vendored
@ -14,13 +14,10 @@ jobs:
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Bazel
|
||||
- name: Install Bazel through bazelisk
|
||||
run: |
|
||||
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
|
||||
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
|
||||
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install bazel
|
||||
bazel --version
|
||||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64
|
||||
chmod +x bazelisk-linux-amd64
|
||||
./bazelisk-linux-amd64 --version
|
||||
- name: Test
|
||||
run: bazel test -s --verbose_failures //...
|
||||
run: ./bazelisk-linux-amd64 test -s --verbose_failures //...
|
||||
|
Loading…
x
Reference in New Issue
Block a user