Skip to content

Commit 4f40c4f

Browse files
committed
Adding in testing of multiple versions for Bazel in Github Action and clarified tested/supported versions of Bazel in the README
1 parent e623fb5 commit 4f40c4f

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.5.0

.github/workflows/release_build.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,45 @@ jobs:
4343
strategy:
4444
matrix:
4545
include:
46+
# Do a singular build for Bazel 4.2.2 to test Bazel 4.2.2.
47+
- os: ubuntu-latest
48+
compiler: gcc
49+
version: 11
50+
bazel: 4.2.2
51+
# Run Bazel 6.5.0 on all compilers versions.
4652
- os: ubuntu-latest
4753
compiler: gcc
4854
version: 9
55+
bazel: 6.5.0
4956
- os: ubuntu-latest
5057
compiler: gcc
5158
version: 10
59+
bazel: 6.5.0
60+
- os: ubuntu-latest
61+
compiler: gcc
62+
version: 11
63+
bazel: 6.5.0
5264
- os: ubuntu-latest
5365
compiler: clang
5466
version: 14
67+
bazel: 6.5.0
5568
steps:
5669
- uses: actions/checkout@v2
5770

5871
# Compile.
59-
- name: Install Bazel 4.2.2
72+
- name: Install Bazel ${{ matrix.bazel }}
6073
uses: abhinavsingh/setup-bazel@v3
6174
with:
62-
version: 4.2.2
75+
version: ${{ matrix.bazel }}
6376

6477
- name: Setup Environment (Linux)
6578
if: matrix.os == 'ubuntu-latest'
6679
run: |
80+
# Just for Github action builds set USE_BAZEL_VERSION to override the
81+
# .bazelversion file so we can test different Bazel versions even though
82+
# the recommended Bazel version will be in the .bazelversion file.
83+
echo "USE_BAZEL_VERSION=${{ matrix.bazel }}" >> $GITHUB_ENV
84+
6785
if [[ "${{ matrix.compiler }}" == "gcc" ]]; then
6886
sudo apt install gcc-${{ matrix.version }} g++-${{ matrix.version }}
6987
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} 100 \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ One FusionEngine or a Point One device (Atlas, Quectel LG69T, etc.), please cont
4646

4747
#### C++ Support
4848
- C++11 or later
49-
- CMake 3.x or Bazel 3.x
49+
- CMake 3.x or Bazel 4.x-6.x (tested with Bazel versions 4.2.2-6.5.0, Bazel 8+ not currently supported)
5050
- GCC, Clang, or Microsoft Visual Studio
5151

5252
#### Python Support

0 commit comments

Comments
 (0)