Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/bazel_version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
"6.5.0",
"7.7.0"
"7.7.0",
"8.5.0"
]

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Prerequisites
We need the following tools:

- Git 2 or newer (we use 2.36)
- Bazel 6 or 7, not yet bazel 8 (we recommend version 7.7.0)
- Bazel 6, 7 or 8 (we recommend version 8.5.0)
- Clang 16 or newer (we use 16), we use clang-tidy
- Python 3.8 or newer (we use 3.11)
- CodeChecker 6.26 or newer (we use 6.26.0)
Expand Down Expand Up @@ -100,11 +100,11 @@ pip3 install codechecker
```

Install Bazel:
We recommend bazel 7.7.0
We recommend bazel 8.5.0
```bash
wget https://github.com/bazelbuild/bazel/releases/download/7.7.0/bazel-7.7.0-linux-x86_64 && \
chmod +x bazel-7.7.0-linux-x86_64 && \
sudo mv bazel-7.7.0-linux-x86_64 /usr/local/bin/bazel
wget https://github.com/bazelbuild/bazel/releases/download/8.5.0/bazel-8.5.0-linux-x86_64 && \
chmod +x bazel-8.5.0-linux-x86_64 && \
sudo mv bazel-8.5.0-linux-x86_64 /usr/local/bin/bazel
```
Or choose a suitable binary for your system from this list: https://github.com/bazelbuild/bazel/releases/tag/7.7.0
Alternatively follow the official guide at: https://bazel.build/install
Expand Down
9 changes: 6 additions & 3 deletions test/foss/test_foss.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ def test_runner(self) -> None:
ret, _, _ = self.run_command(
f"sh init.sh {test_dir}", project_root
)
module_file = Path(
os.path.join(test_dir, "MODULE.bazel")
)
skip_test = Path(os.path.join(test_dir, ".skipfosstest"))
if os.path.exists(skip_test):
self.skipTest(
"This project is not compatible with this bazel version"
)
module_file = Path(os.path.join(test_dir, "MODULE.bazel"))
if os.path.exists(module_file):
content = module_file.read_text("utf-8").replace(
"{rule_path}",
Expand Down
7 changes: 7 additions & 0 deletions test/foss/yaml-cpp/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ if [ -z "$1" ]; then
exit 1
fi

# Skip this test on bazel 8
MAJOR_VERSION=$(bazel --version | cut -d' ' -f2 | cut -d'.' -f1)
if [ "$MAJOR_VERSION" -ge 8 ]; then
echo "" >> $1/.skipfosstest
exit 0
fi

git clone https://github.com/jbeder/yaml-cpp.git "$1"
git -C "$1" checkout yaml-cpp-0.7.0

Expand Down
7 changes: 7 additions & 0 deletions test/foss/zlib/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ if [ -z "$1" ]; then
exit 1
fi

# Skip this test on bazel 8
MAJOR_VERSION=$(bazel --version | cut -d' ' -f2 | cut -d'.' -f1)
if [ "$MAJOR_VERSION" -ge 8 ]; then
echo "" >> $1/.skipfosstest
exit 0
fi

git clone https://github.com/madler/zlib.git "$1"
git -C "$1" checkout 5a82f71ed1dfc0bec044d9702463dbdf84ea3b71

Expand Down
Loading