1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 21:31:15 +02:00

ci: Add bazel jobs (#232)

This commit is contained in:
Mizux
2022-03-10 11:27:29 +01:00
committed by GitHub
parent e4e535d7c2
commit 49679ea9d2
2 changed files with 33 additions and 11 deletions

26
.github/workflows/amd64_bazel_linux.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: amd64 Bazel Linux
on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'
jobs:
# Building using the github runner environement directly.
bazel:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install Bazel
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
- name: Test
run: bazel test -s --verbose_failures //...