fixed build failure #21
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 build | |
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 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 build | |
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 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 build | |
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 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 |