mirror of
https://github.com/google/cpu_features.git
synced 2025-04-27 23:22:31 +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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Install Bazel through bazelisk
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Check docker
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-arm64
|
docker info
|
||||||
chmod +x bazelisk-linux-arm64
|
docker buildx ls
|
||||||
./bazelisk-linux-arm64 --version
|
- name: Build
|
||||||
|
run: make --directory=bazel/ci arm64_build
|
||||||
- name: Test
|
- 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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Install Bazel through bazelisk
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Check docker
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64
|
docker info
|
||||||
chmod +x bazelisk-linux-amd64
|
docker buildx ls
|
||||||
./bazelisk-linux-amd64 --version
|
- name: Build
|
||||||
|
run: make --directory=bazel/ci amd64_build
|
||||||
- name: Test
|
- 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