Skip to content

Commit b434bd9

Browse files
committed
Add traci and sumolib wheel from sumo
1 parent e3ef6f4 commit b434bd9

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
matrix:
5151
wheel:
5252
- ns-3
53+
- traci
5354
fail-fast: false
5455

5556
steps:

traci/build.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
section ---------------- install ----------------
2+
run apt-get update
3+
run apt-get install -y --no-install-recommends \
4+
git \
5+
ca-certificates \
6+
python3-setuptools \
7+
python3-wheel \
8+
&& true
9+
10+
section ---------------- build ----------------
11+
workdir /opt/sumo
12+
run git clone -b "v1_5_0" --depth 1 https://github.com/eclipse/sumo .
13+
14+
universal_wheels='traci sumolib'
15+
16+
for wheel in $universal_wheels; do
17+
workdir "/opt/$wheel"
18+
run python3 "../sumo/tools/build/setup-$wheel.py" bdist_wheel --universal
19+
done
20+
21+
section ---------------- assets ----------------
22+
for wheel in $universal_wheels; do
23+
asset "/opt/$wheel/dist"/*
24+
done

0 commit comments

Comments
 (0)