Skip to content

Commit 2277369

Browse files
committed
Update to RocketSim 2.2
1 parent 9c2d45e commit 2277369

3 files changed

Lines changed: 33 additions & 57 deletions

File tree

.github/workflows/main.yml

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
tags:
66
- v*
77
pull_request:
8+
workflow_dispatch:
89

910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.ref }}
@@ -16,14 +17,14 @@ jobs:
1617
runs-on: ${{ matrix.os }}
1718
strategy:
1819
matrix:
19-
os: [windows-2019, ubuntu-22.04, macos-13]
20+
os: [windows-2022, ubuntu-22.04, macos-14]
2021

2122
steps:
22-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2324

24-
- uses: actions/setup-python@v5
25+
- uses: actions/setup-python@v6
2526
with:
26-
python-version: '3.9'
27+
python-version: '3.11'
2728
cache: 'pip'
2829

2930
- name: Install dependencies
@@ -37,7 +38,7 @@ jobs:
3738
python3 -m pip wheel . -w dist
3839
for old in dist/rocketsim-*.whl
3940
do
40-
new=$(echo $old | sed -E 's/-(cp[0-9]+)-cp[0-9]+-/-\1-abi3-/g')
41+
new=$(echo $old | sed -E 's/-(cp[0-9]+)-cp[0-9]+-/-cp39-abi3-/g')
4142
mv $old $new
4243
done
4344
@@ -47,13 +48,11 @@ jobs:
4748
python3 -m cibuildwheel --output-dir dist
4849
for old in dist/rocketsim-*.whl
4950
do
50-
new=$(echo $old | sed -E 's/-(cp[0-9]+)-cp[0-9]+-.*\.whl/-\1-abi3-manylinux2014_x86_64.whl/g')
51+
new=$(echo $old | sed -E 's/-(cp[0-9]+)-cp[0-9]+-.*\.whl/-cp39-abi3-manylinux2014_x86_64.whl/g')
5152
mv $old $new
5253
done
53-
env:
54-
CIBW_BUILD: cp39-manylinux_x86_64
5554
56-
- uses: actions/upload-artifact@v4
55+
- uses: actions/upload-artifact@v6
5756
with:
5857
name: wheel-${{ matrix.os }}
5958
path: dist/rocketsim-*.whl
@@ -63,14 +62,15 @@ jobs:
6362
runs-on: ${{ matrix.os }}
6463
needs: build_wheel
6564
strategy:
65+
fail-fast: false
6666
matrix:
67-
os: [windows-2019, ubuntu-22.04, macos-13]
68-
pyversion: ['3.9', '3.10', '3.11', '3.12', '3.13']
67+
os: [windows-2022, ubuntu-22.04, macos-14]
68+
pyversion: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
6969

7070
steps:
71-
- uses: actions/checkout@v4
71+
- uses: actions/checkout@v6
7272

73-
- uses: actions/setup-python@v5
73+
- uses: actions/setup-python@v6
7474
with:
7575
python-version: ${{ matrix.pyversion }}
7676
cache: 'pip'
@@ -80,7 +80,7 @@ jobs:
8080
pip3 install numpy PyGLM
8181
8282
- name: Download artifact ${{ matrix.os }}
83-
uses: actions/download-artifact@v4
83+
uses: actions/download-artifact@v7
8484
with:
8585
name: wheel-${{ matrix.os }}
8686
path: dist
@@ -91,7 +91,7 @@ jobs:
9191
pip3 install dist/rocketsim-*.whl
9292
9393
- name: Load collision meshes
94-
uses: actions/cache/restore@v4
94+
uses: actions/cache/restore@v5
9595
id: collision-cache-restore
9696
with:
9797
path: collision_meshes
@@ -100,20 +100,13 @@ jobs:
100100

101101
- name: Download collision meshes
102102
if: steps.collision-cache-restore.outputs.cache-hit != 'true'
103-
uses: suisei-cn/actions-download-file@v1.3.0
104-
with:
105-
url: https://mtheall.com/~mtheall/collision_meshes.tar
106-
107-
- name: Extract collision meshes
108-
if: steps.collision-cache-restore.outputs.cache-hit != 'true'
109-
uses: a7ul/tar-action@v1.1.3
110-
with:
111-
command: x
112-
files: collision_meshes.tar
103+
run: |
104+
curl -o collision_meshes.tar ${{ secrets.COLLISION_MESHES_URL }}
105+
tar -xf collision_meshes.tar
113106
114107
- name: Save collision meshes
115108
if: steps.collision-cache-restore.outputs.cache-hit != 'true'
116-
uses: actions/cache/save@v4
109+
uses: actions/cache/save@v5
117110
with:
118111
path: collision_meshes
119112
key: collision-cache
@@ -138,22 +131,22 @@ jobs:
138131
permissions:
139132
id-token: write
140133
steps:
141-
- name: Download artifact windows-2019
142-
uses: actions/download-artifact@v4
134+
- name: Download artifact windows-2022
135+
uses: actions/download-artifact@v7
143136
with:
144-
name: wheel-windows-2019
137+
name: wheel-windows-2022
145138
path: dist
146139

147140
- name: Download artifact ubuntu-22.04
148-
uses: actions/download-artifact@v4
141+
uses: actions/download-artifact@v7
149142
with:
150143
name: wheel-ubuntu-22.04
151144
path: dist
152145

153-
- name: Download artifact macos-13
154-
uses: actions/download-artifact@v4
146+
- name: Download artifact macos-14
147+
uses: actions/download-artifact@v7
155148
with:
156-
name: wheel-macos-13
149+
name: wheel-macos-14
157150
path: dist
158151

159152
- name: Publish package distributions to PyPI

CMakeLists.txt

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,7 @@ file(GLOB_RECURSE ROCKETSIM_BULLET3_SOURCES libsrc/bullet3-3.24/*.cpp)
1111
file(GLOB_RECURSE ROCKETSIM_SOURCES src/*.cpp)
1212
file(GLOB ROCKETSIM_PYTHON_SOURCES python-mtheall/*.cpp)
1313

14-
add_library(${PROJECT_NAME} MODULE)
15-
16-
set_target_properties(${PROJECT_NAME} PROPERTIES
17-
PREFIX ""
18-
)
19-
20-
if(WIN32)
21-
set_target_properties(${PROJECT_NAME} PROPERTIES
22-
OUTPUT_NAME ${PROJECT_NAME}
23-
)
24-
25-
if(NOT CYGWIN)
26-
set_target_properties(${PROJECT_NAME} PROPERTIES
27-
SUFFIX .pyd
28-
)
29-
endif()
30-
else()
31-
set_target_properties(${PROJECT_NAME} PROPERTIES
32-
OUTPUT_NAME ${PROJECT_NAME}.${Python3_SOSABI}
33-
)
34-
endif()
14+
Python3_add_library(${PROJECT_NAME} MODULE USE_SABI "3.9" WITH_SOABI)
3515

3616
target_sources(${PROJECT_NAME} PRIVATE
3717
${ROCKETSIM_BULLET3_SOURCES}
@@ -63,7 +43,6 @@ target_link_libraries(${PROJECT_NAME} PRIVATE Python3::SABIModule Python3::NumPy
6343

6444
target_compile_definitions(${PROJECT_NAME} PRIVATE
6545
PY_SSIZE_T_CLEAN=1
66-
Py_LIMITED_API=0x03090000
6746
NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION
6847
PY_ARRAY_UNIQUE_SYMBOL=RocketSim_ARRAY_API
6948
NO_IMPORT_ARRAY=1

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
[project]
22
name = "RocketSim"
3-
version = "2.1.1.post4"
3+
version = "2.2.0"
44
description = "This is Rocket League!"
55
dependencies = ["numpy"]
66
requires-python = ">= 3.9"
77

88
[build-system]
99
requires = ["cmeel[build]", "numpy>=2.0,<3"]
1010
build-backend = "cmeel"
11-
backend-path = "."
11+
backend-path = ["."]
1212

1313
[tool.cmeel]
1414
run-tests = false
15+
16+
[tool.cibuildwheel]
17+
build = "cp39-*"
18+
skip = "*-musllinux*"

0 commit comments

Comments
 (0)