deprecated std::vector based types: to be replaced by PxArray types #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Build | |
on: | |
push: | |
branches: | |
- "*" | |
tags: | |
- '!**' | |
pull_request: | |
branches: | |
- "*" | |
tags: | |
- '!**' | |
jobs: | |
build_linux: | |
name: Linux native binaries | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: lukka/get-cmake@latest | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Build native lib | |
run: ./gradlew buildNativeProject | |
- name: Build and test JNI bindings | |
run: ./gradlew build | |
- name: Upload Linux native lib artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linux-libs | |
path: | | |
physx-jni/build/libs/physx-jni-?.?.?.jar | |
physx-jni-natives-linux/build/libs/physx-jni-natives-linux-?.?.?.jar | |
physx-jni-natives-linux-cuda/build/libs/physx-jni-natives-linux-cuda-?.?.?.jar | |
build_windows: | |
name: Windows native binaries | |
runs-on: windows-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup CMake | |
uses: lukka/get-cmake@latest | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Build native lib | |
run: ./gradlew buildNativeProject | |
- name: Build and test JNI bindings | |
run: ./gradlew build | |
- name: Upload Windows native lib artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows-libs | |
path: | | |
physx-jni/build/libs/physx-jni-?.?.?.jar | |
physx-jni-natives-windows/build/libs/physx-jni-natives-windows-?.?.?.jar | |
physx-jni-natives-windows-cuda/build/libs/physx-jni-natives-windows-cuda-?.?.?.jar | |
build_macos: | |
name: MacOS native binaries | |
runs-on: macos-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install coreutils | |
run: brew install coreutils | |
- name: Setup CMake | |
uses: lukka/get-cmake@latest | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Build native lib | |
run: ./gradlew buildNativeProject | |
env: | |
PM_PYTHON_EXT: python3 | |
- name: Build and test JNI bindings | |
run: ./gradlew build | |
- name: Upload MacOS native lib artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: macos-libs | |
path: | | |
physx-jni/build/libs/physx-jni-?.?.?.jar | |
physx-jni-natives-macos/build/libs/physx-jni-natives-macos-?.?.?.jar | |
physx-jni-natives-macos-arm64/build/libs/physx-jni-natives-macos-arm64-?.?.?.jar |