-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #665 from dougthor42/u/dthor/bazelisk
Use bazel-contrib/setup-bazel instead of manually installing a deb during CI
- Loading branch information
Showing
1 changed file
with
20 additions
and
14 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -22,12 +22,14 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Install Bazel on CI | ||
run: | | ||
wget https://github.com/bazelbuild/bazel/releases/download/5.3.0/bazel_5.3.0-linux-x86_64.deb | ||
sudo dpkg -i bazel_5.3.0-linux-x86_64.deb | ||
- name: Install requirements | ||
run: | | ||
python3 -m pip install -r requirements.txt | ||
|
@@ -51,16 +53,18 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Install Bazel on CI | ||
run: | | ||
wget https://github.com/bazelbuild/bazel/releases/download/5.3.0/bazel_5.3.0-linux-x86_64.deb | ||
sudo dpkg -i bazel_5.3.0-linux-x86_64.deb | ||
- name: Install requirements | ||
run: | | ||
python3 -m pip install -r requirements.txt | ||
- name: Upgrade libc | ||
- name: Upgrade libc | ||
# An LLVM update broke this test, fix per is https://bugs.llvm.org/show_bug.cgi?id=27310. | ||
run: | | ||
sudo apt update | ||
|
@@ -69,19 +73,21 @@ jobs: | |
run: | | ||
bazel test --config=avx --config=openmp \ | ||
--config=${{ matrix.sanitizer_opt }} tests:all | ||
test-mem: | ||
name: Test with tcmalloc | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Install Bazel on CI | ||
run: | | ||
wget https://github.com/bazelbuild/bazel/releases/download/5.3.0/bazel_5.3.0-linux-x86_64.deb | ||
sudo dpkg -i bazel_5.3.0-linux-x86_64.deb | ||
- name: Install requirements | ||
run: | | ||
python3 -m pip install -r requirements.txt | ||
|