From a2b63acd71ee87c12773f4df900edbc780d86d90 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Wed, 9 Mar 2022 19:11:21 +0100 Subject: [PATCH] ci: Add linux bazel job --- .github/workflows/amd64_bazel_linux.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/amd64_bazel_linux.yml diff --git a/.github/workflows/amd64_bazel_linux.yml b/.github/workflows/amd64_bazel_linux.yml new file mode 100644 index 00000000..c9d06068 --- /dev/null +++ b/.github/workflows/amd64_bazel_linux.yml @@ -0,0 +1,26 @@ +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: Test + run: bazel test -s --verbose_failures //...