aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas.ru@gmail.com>2023-06-22 11:29:08 +0200
committerGitHub <noreply@github.com>2023-06-22 11:29:08 +0200
commit50ebce107f5b1eb36760c7ec2d4726ec56784373 (patch)
tree1941b0d4a4b90967cd3ed3f3c2ca6669619d0555 /.github/workflows
parentbfa15d4046173e47553af692e20e145a95c36084 (diff)
downloadbrotli-50ebce107f5b1eb36760c7ec2d4726ec56784373.zip
brotli-50ebce107f5b1eb36760c7ec2d4726ec56784373.tar.gz
brotli-50ebce107f5b1eb36760c7ec2d4726ec56784373.tar.bz2
Fix Bazel build (#1024)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_test.yml31
1 files changed, 16 insertions, 15 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index a7b23d6..ff5e8fd 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -33,7 +33,7 @@ jobs:
build_system: cmake
c_compiler: gcc-9
cxx_compiler: g++-9
- os: ubuntu-18.04
+ os: ubuntu-20.04
# TODO: consider running this combination in docker
#- name: cmake:clang3.5
@@ -114,12 +114,13 @@ jobs:
# TODO: consider running this combination in docker
#- name: python2.7:gcc5
- - name: python27:clang9
- build_system: python
- c_compiler: clang-9
- python_version: 2.7
- cxx_compiler: clang++-9
- os: ubuntu-18.04
+ # TODO: consider running this combination in docker
+ #- name: python27:clang9
+ # build_system: python
+ # c_compiler: clang-9
+ # python_version: 2.7
+ # cxx_compiler: clang++-9
+ # os: ubuntu-20.04
# TODO: consider running this combination in docker
#- name: python27-win
@@ -202,7 +203,7 @@ jobs:
- name: bazel-win:root
build_system: bazel
bazel_project: .
- os: windows-latest
+ os: windows-2019
# TODO: use single dll on windows, otherwise it fails to link
#- name: bazel-win:go
@@ -213,7 +214,7 @@ jobs:
- name: bazel-win:java
build_system: bazel
bazel_project: java
- os: windows-latest
+ os: windows-2019
# TODO: blocked by Bazel Closure rules issue
#- name: bazel-win:js
@@ -224,7 +225,7 @@ jobs:
- name: bazel-win:research
build_system: bazel
bazel_project: research
- os: windows-latest
+ os: windows-2019
- name: make
build_system: make
@@ -245,7 +246,7 @@ jobs:
steps:
- name: Install extra deps @ Ubuntu
if: ${{ runner.os == 'Linux' }}
- # Already installed: bazel, clang{10-12}, cmake, gcc{9,10}, java{8,11}, maven, python{2.7,3.5-3.9}
+ # Already installed: bazel, clang{10-12}, cmake, gcc{9,10}, java{8,11}, maven, python{3.5-3.9}
run: |
EXTRA_PACKAGES="${{ matrix.extra_apt_pkgs || '' }}"
sudo apt update
@@ -293,7 +294,7 @@ jobs:
if: ${{ matrix.build_system == 'bazel' }}
run: |
cd ${GITHUB_WORKSPACE}/${{ matrix.bazel_project }}
- bazel build -c opt ...:all
+ bazelisk build -c opt ...:all
- name: Fix symlinks for Bazel (Windows)
if: ${{ matrix.build_system == 'bazel' && runner.os == 'Windows' && matrix.bazel_project == 'java' }}
@@ -337,9 +338,9 @@ jobs:
if: ${{ matrix.build_system == 'bazel' }}
run: |
cd ${GITHUB_WORKSPACE}/${{ matrix.bazel_project }}
- bazel query "tests(...)" --output=label > ${RUNNER_TEMP}/tests.lst
- [ -s ${RUNNER_TEMP}/tests.lst ] && bazel test -c opt ...:all
- bazel clean
+ bazelisk query "tests(...)" --output=label > ${RUNNER_TEMP}/tests.lst
+ [ -s ${RUNNER_TEMP}/tests.lst ] && bazelisk test -c opt ...:all
+ bazelisk clean
- name: Build / Test with Maven
if: ${{ matrix.build_system == 'maven' }}