Skip to content

Commit adf5df5

Browse files
committed
ci: downgrade bazel to 6.5.0 and add explicit installation in workflows
- Downgrade Bazel from 7.6.1 to 6.5.0 for certificate handling stability - Add pre-build Bazel installation step with direct download (bypassing cert checks) - Install Bazel to ~/.local/bin and update PATH for consistent CI environment - Remove explicit PyPI repository URL (use default legacy endpoint) - Add Python 3.12 and 3.13 classifier support This ensures consistent Bazel availability across all CI runners (Linux/macOS) and improves compatibility with current PyPI publishing practices.
1 parent 5088303 commit adf5df5

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed

.bazelrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Bazel configuration for C++ standard and build options
2+
3+
# Enforce C++17 standard for both target and host (tools) compilation
4+
build --cxxopt=-std=gnu++17
5+
build --host_cxxopt=-std=gnu++17
6+
build --cxxopt=-fno-strict-aliasing
7+
build --host_cxxopt=-fno-strict-aliasing
8+
9+
# Disable bzlmod (new module system) to use traditional WORKSPACE
10+
common --noenable_bzlmod
11+
12+
# Don't keep state after build to prevent cache issues
13+
common --nokeep_state_after_build
14+
15+
# Verbose logging for CI debugging
16+
build --verbose_failures
17+
18+
# macOS specific settings
19+
build:macos --cxxopt=-std=gnu++17
20+
build:macos --host_cxxopt=-std=gnu++17
21+
build:macos --cxxopt=-fno-strict-aliasing
22+
build:macos --host_cxxopt=-fno-strict-aliasing

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch:
1010

1111
env:
12-
USE_BAZEL_VERSION: "7.6.1"
12+
USE_BAZEL_VERSION: "6.5.0"
1313

1414
jobs:
1515
tests:

.github/workflows/wheels.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [published]
88

99
env:
10-
USE_BAZEL_VERSION: "7.6.1"
10+
USE_BAZEL_VERSION: "6.5.0"
1111

1212

1313
jobs:
@@ -36,6 +36,18 @@ jobs:
3636
run: |
3737
python -m pip install --upgrade pip "setuptools<70" "build<2.0" wheel
3838
39+
- name: Install Bazel
40+
run: |
41+
mkdir -p ~/.local/bin
42+
if [[ "${{ runner.os }}" == "Linux" ]]; then
43+
wget --no-check-certificate -q https://github.com/bazelbuild/bazel/releases/download/${{ env.USE_BAZEL_VERSION }}/bazel-${{ env.USE_BAZEL_VERSION }}-linux-x86_64 -O ~/.local/bin/bazel
44+
elif [[ "${{ runner.os }}" == "macOS" ]]; then
45+
wget --no-check-certificate -q https://github.com/bazelbuild/bazel/releases/download/${{ env.USE_BAZEL_VERSION }}/bazel-${{ env.USE_BAZEL_VERSION }}-darwin-arm64 -O ~/.local/bin/bazel
46+
fi
47+
chmod +x ~/.local/bin/bazel
48+
echo "$HOME/.local/bin" >> $GITHUB_PATH
49+
bazel --version
50+
3951
- name: Build wheels
4052
run: |
4153
python -m build --wheel --sdist
@@ -79,7 +91,6 @@ jobs:
7991
uses: pypa/gh-action-pypi-publish@release/v1.12
8092
with:
8193
packages-dir: wheels/
82-
repository-url: https://pypi.org/legacy/
8394
# already checked, and the pkginfo/twine versions on this runner causes check to fail
8495
verify-metadata: false
8596
verbose: true

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def run(self):
124124
"Programming Language :: Python :: 3.9",
125125
"Programming Language :: Python :: 3.10",
126126
"Programming Language :: Python :: 3.11",
127+
"Programming Language :: Python :: 3.12",
128+
"Programming Language :: Python :: 3.13",
127129
"Programming Language :: Python :: 3 :: Only",
128130
"Topic :: Scientific/Engineering :: Artificial Intelligence",
129131
"Topic :: Scientific/Engineering :: Mathematics",

0 commit comments

Comments
 (0)