-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add bazel output dirs * Add user bazelrc if any * Add some IDE tmp files PiperOrigin-RevId: 715957008
- Loading branch information
1 parent
11b801f
commit 2420efd
Showing
27 changed files
with
163 additions
and
940 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
# ref: https://github.com/actions/runner-images | ||
name: build_and_test | ||
|
||
# Controls when the action will run. | ||
on: [push, pull_request, workflow_dispatch] | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
PIP_BREAK_SYSTEM_PACKAGES: 1 | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
|
||
unix: | ||
strategy: | ||
fail-fast: false | ||
|
@@ -23,21 +30,28 @@ jobs: | |
steps: | ||
- name: Show env | ||
run: env | ||
|
||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup bazel | ||
- name: Install bazel | ||
if: matrix.build_tool == 'bazel' | ||
uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
# Install Bazel, see https://docs.bazel.build/versions/master/install-ubuntu.html#step-1-install-required-packages | ||
run: | | ||
sudo apt install curl gnupg | ||
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 update && sudo apt install bazel -y | ||
- name: Show bazel version | ||
if: matrix.build_tool == 'bazel' | ||
run: bazel --version | ||
|
||
- name: Update cmake | ||
if: matrix.build_tool == 'cmake' | ||
uses: jwlawson/[email protected] | ||
|
||
- name: Show cmake version | ||
if: matrix.build_tool == 'cmake' | ||
run: cmake --version | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.