mirror of
https://github.com/google/cpu_features.git
synced 2025-04-27 15:12:30 +02:00
ci: rework bazel workflows to use a docker container
This commit is contained in:
parent
468426e7c7
commit
c57960579b
15
.github/workflows/aarch64_linux_bazel.yml
vendored
15
.github/workflows/aarch64_linux_bazel.yml
vendored
@ -13,11 +13,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Bazel through bazelisk
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Check docker
|
||||
run: |
|
||||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-arm64
|
||||
chmod +x bazelisk-linux-arm64
|
||||
./bazelisk-linux-arm64 --version
|
||||
docker info
|
||||
docker buildx ls
|
||||
- name: Build
|
||||
run: make --directory=bazel/ci arm64_build
|
||||
- name: Test
|
||||
run: ./bazelisk-linux-arm64 test -s --verbose_failures //...
|
||||
run: make --directory=bazel/ci arm64_test
|
||||
|
15
.github/workflows/amd64_linux_bazel.yml
vendored
15
.github/workflows/amd64_linux_bazel.yml
vendored
@ -13,11 +13,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Bazel through bazelisk
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Check docker
|
||||
run: |
|
||||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64
|
||||
chmod +x bazelisk-linux-amd64
|
||||
./bazelisk-linux-amd64 --version
|
||||
docker info
|
||||
docker buildx ls
|
||||
- name: Build
|
||||
run: make --directory=bazel/ci amd64_build
|
||||
- name: Test
|
||||
run: ./bazelisk-linux-amd64 test -s --verbose_failures //...
|
||||
run: make --directory=bazel/ci amd64_test
|
||||
|
Loading…
x
Reference in New Issue
Block a user