Skip to content

Commit 8776b72

Browse files
committed
fixed builder
1 parent 7e562f4 commit 8776b72

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.github/build.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ def build(self):
3131
class BoostBuilder(Builder):
3232
def fetch(self):
3333
os.chdir(self.build_dir)
34-
url = f"https://github.com/boostorg/boost/releases/download/boost-{self.version}/boost-{self.version}.tar.xz"
35-
urlretrieve(url, f"boost-{self.version}.tar.xz")
36-
run("tar", "xf", f"boost-{self.version}.tar.xz", "-C", self.build_dir)
34+
fs_version = self.version.replace(".", "_")
35+
url = f"https://archives.boost.io/release/{self.version}/source/boost_{fs_version}.tar.gz"
36+
urlretrieve(url, f"boost_{fs_version}.tar.gz")
37+
run("tar", "xf", f"boost_{fs_version}.tar.gz", "-C", self.build_dir)
3738

3839
def build(self):
40+
fs_version = self.version.replace(".", "_")
3941
os.chdir(self.build_dir)
40-
os.chdir(f"boost-{self.version}")
42+
os.chdir(f"boost_{fs_version}")
4143
b2_options = [
4244
f"-j{self.cpu_count}",
4345
"--with-system",

.github/workflows/build-package.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on: [push]
55
jobs:
66
build_wheel:
77
runs-on: ubuntu-latest
8-
env:
9-
UTM_VERSION: 0.14.0
108
strategy:
119
matrix:
1210
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
@@ -17,7 +15,7 @@ jobs:
1715
sudo apt-get install -y libboost-dev libboost-system-dev libboost-filesystem-dev libxerces-c-dev swig
1816
- name: Build utm
1917
run: |
20-
python3 .github/build.py --utm-version=${{ env.UTM_VERSION }} --install-prefix=${GITHUB_WORKSPACE}/dist
18+
python3 .github/build.py --install-prefix=${GITHUB_WORKSPACE}/dist
2119
- name: Set up Python ${{ matrix.python-version }}
2220
uses: actions/setup-python@v3
2321
with:

.github/workflows/build-wheels.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Build wheels
22

33
on: [push, workflow_dispatch]
44

5-
env:
6-
UTM_VERSION: 0.14.0
7-
BOOST_VERSION: 1.90.0
8-
XERCES_C_VERSION: 3.3.0
9-
105
jobs:
116
build_wheels_linux:
127
name: Build wheels for Linux

0 commit comments

Comments
 (0)