diff --git a/.github/workflows/bazeltest.yml b/.github/workflows/bazeltest.yml index 495cb1ef..24e20918 100644 --- a/.github/workflows/bazeltest.yml +++ b/.github/workflows/bazeltest.yml @@ -22,12 +22,14 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: bazel-contrib/setup-bazel@0.8.5 + 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/setup-bazel@0.8.5 + 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/setup-bazel@0.8.5 + 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