Skip to content

Commit

Permalink
ci: Add bazel test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Mar 9, 2022
1 parent 1555192 commit b50e675
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/amd64_bazel_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 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: Build
run: bazel build -c opt --verbose_failures //...
- name: Test
run: bazel test -c opt --verbose_failures //...
24 changes: 24 additions & 0 deletions .github/workflows/amd64_bazel_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Bazel MacOS

on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'

jobs:
bazel:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install Bazel
run: |
brew update
#brew install bazel
bazel --version
- name: Build
run: bazel build -c opt --verbose_failures //...
- name: Test
run: bazel test -c opt --verbose_failures //...
23 changes: 23 additions & 0 deletions .github/workflows/amd64_bazel_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Bazel Windows

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: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install Bazel
run: |
choco install bazel
bazel --version
- name: Build
run: bazel build -c opt --verbose_failures //...
- name: Test
run: bazel test -c opt --verbose_failures //...

0 comments on commit b50e675

Please sign in to comment.