Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build for missing platforms #329

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
bdadeb6
fix ios build
Ughuuu Jan 1, 2025
ef1ef81
update123
Ughuuu Jan 30, 2025
b892b5b
enable all builds
Ughuuu Jan 30, 2025
2d2a82a
Update ios_builds.yml
Ughuuu Jan 30, 2025
aa7b691
Update ios_builds.yml
Ughuuu Jan 30, 2025
75abdc3
Update ios_builds.yml
Ughuuu Jan 30, 2025
ab46cf8
Update ios_builds.yml
Ughuuu Jan 30, 2025
21cbc6b
Update ios_builds.yml
Ughuuu Jan 30, 2025
f15f3af
fix armv7a path
Ughuuu Jan 30, 2025
96d4538
Update ios_builds.yml
Ughuuu Jan 30, 2025
dadb50e
Update ios_builds.yml
Ughuuu Jan 30, 2025
65dc437
Update ios_builds.yml
Ughuuu Jan 31, 2025
980aab2
Update ios_builds.yml
Ughuuu Jan 31, 2025
bc83014
Update ios_builds.yml
Ughuuu Jan 31, 2025
19f48fa
install missing stuff for build
Ughuuu Jan 31, 2025
38dacc7
Update linux_builds.yml
Ughuuu Jan 31, 2025
89d6dd2
Update linux_builds.yml
Ughuuu Jan 31, 2025
2a7e79a
Update linux_builds.yml
Ughuuu Jan 31, 2025
da6f521
Update linux_builds.yml
Ughuuu Jan 31, 2025
3329d61
Update linux_builds.yml
Ughuuu Jan 31, 2025
3c30e70
Update windows_builds.yml
Ughuuu Jan 31, 2025
0c33f05
Update windows_builds.yml
Ughuuu Feb 2, 2025
5ec70c2
update
Ughuuu Feb 2, 2025
b13dfd8
update linux
Ughuuu Feb 2, 2025
33d8c46
Update web_builds.yml
Ughuuu Feb 2, 2025
753bea6
Update web_builds.yml
Ughuuu Feb 2, 2025
3bf7be6
asd
Ughuuu Feb 2, 2025
e2b5954
asd
Ughuuu Feb 2, 2025
ba7f213
asd
Ughuuu Feb 2, 2025
950b644
asd
Ughuuu Feb 2, 2025
6b0e079
add info.plist files
Ughuuu Feb 2, 2025
1ed04b6
Update .gitignore
Ughuuu Feb 2, 2025
0157b18
Update ios_builds.yml
Ughuuu Feb 2, 2025
f2ab594
Update web_builds.yml
Ughuuu Feb 2, 2025
fd101e0
Update ios_builds.yml
Ughuuu Feb 2, 2025
b4afc34
Update ios_builds.yml
Ughuuu Feb 2, 2025
2426495
Update ios_builds.yml
Ughuuu Feb 2, 2025
cbc6376
update
Ughuuu Feb 7, 2025
e3fff9e
remove godot4_bin
Ughuuu Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,28 @@ name: 🤖 Android Builds
on:
workflow_call:

env:
GODOT4_BIN: godot

jobs:
android:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
arch: ["x86_64-linux-android", "aarch64-linux-android", "i686-linux-android"]
arch: ["x86_64-linux-android", "armv7-linux-androideabi", "aarch64-linux-android", "i686-linux-android"]
precision: [single] #, double]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
#- uses: chickensoft-games/setup-godot@v1
# name: 🤖 Setup Godot
# with:
# version: 4.3.0
# use-dotnet: false
#- name: 🔬 Verify Setup
# run: |
# godot --version
# which godot
# GODOT4_BIN=godot
- uses: blazium-engine/setup-blazium@master
name: 🤖 Setup Blazium
with:
version: 0.1.184-nightly
- name: 🔬 Verify Setup
run: |
Blazium --version
echo "GODOT4_BIN=$BLAZIUM_EDITOR" >> $GITHUB_ENV
- name: Set up Java 11
uses: actions/setup-java@v4
with:
Expand All @@ -50,8 +45,7 @@ jobs:
run: |
echo "CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=${{steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android23-clang" >> $GITHUB_ENV
echo "CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER=${{steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android23-clang" >> $GITHUB_ENV
# This is not find when compiling
# echo "CARGO_TARGET_ARMV7_LINUX_ANDROID_LINKER=${{steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi23-clang" >> $GITHUB_ENV
echo "CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=${{steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi23-clang" >> $GITHUB_ENV
echo "CARGO_TARGET_I686_LINUX_ANDROID_LINKER=${{steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android23-clang" >> $GITHUB_ENV
echo "CLANG_PATH=${{steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang" >> $GITHUB_ENV
echo "LIBCLANG_PATH=${{steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/lib64/libclang.so.12git" >> $GITHUB_ENV
Expand Down
38 changes: 17 additions & 21 deletions .github/workflows/ios_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,54 @@ on:
workflow_call:

env:
GODOT4_BIN: godot
LLVM_PATH: /opt/homebrew/opt/llvm/bin

jobs:
ios:
runs-on: "macos-latest"
name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch }}
name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch.name }}
strategy:
fail-fast: false
matrix:
arch: ["aarch64-apple-ios"]
arch: [{"name" : "arm64", "rust": "aarch64-apple-ios"}, {"name" : "x86_64", "rust": "x86_64-apple-ios"}]
precision: [single] #, double]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
#- uses: chickensoft-games/setup-godot@v1
# name: 🤖 Setup Godot
# with:
# version: 4.3.0
# use-dotnet: false
#- name: 🔬 Verify Setup
# run: |
# godot --version
# which godot
# GODOT4_BIN=godot
# brew install llvm
# brew link llvm
- uses: blazium-engine/setup-blazium@master
name: 🤖 Setup Blazium
with:
version: 0.1.184-nightly
- name: 🔬 Verify Setup
run: |
Blazium --version
echo "GODOT4_BIN=$BLAZIUM_EDITOR" >> $GITHUB_ENV
- name: Build
uses: ./.github/actions/build
with:
arch: ${{ matrix.arch }}
arch: ${{ matrix.arch.rust }}
features: ${{ matrix.features.feature }},${{ matrix.precision }}-${{ matrix.dimensions.feature }}
- name: Copy to bin
shell: sh
run: |
mv target/release/libgodot_rapier.dylib bin${{ matrix.dimensions.short }}/addons/godot-rapier${{ matrix.dimensions.short }}/bin/libgodot_rapier.ios.framework/libgodot_rapier.ios
mv target/release/libgodot_rapier.a bin${{ matrix.dimensions.short }}/addons/godot-rapier${{ matrix.dimensions.short }}/bin/libgodot_rapier.ios.framework/libgodot_rapier.a
ls target/release
mv target/release/libgodot_rapier.dylib bin${{ matrix.dimensions.short }}/addons/godot-rapier${{ matrix.dimensions.short }}/bin/libgodot_rapier.ios.${{ matrix.arch.name }}.framework/libgodot_rapier
mv target/release/libgodot_rapier.a bin${{ matrix.dimensions.short }}/addons/godot-rapier${{ matrix.dimensions.short }}/bin/libgodot_rapier.ios.${{ matrix.arch.name }}.framework/libgodot_rapier.a

- name: Upload
uses: actions/upload-artifact@v4
with:
name: godot-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch}}
name: godot-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch.rust}}
path: |
bin${{ matrix.dimensions.short }}/**/*.ios
bin${{ matrix.dimensions.short }}/**/libgodot_rapier
if-no-files-found: error

- name: Upload Static
uses: actions/upload-artifact@v4
with:
name: static-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch}}
name: static-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch.rust}}
path: |
bin${{ matrix.dimensions.short }}/**/*.a
if-no-files-found: error
27 changes: 11 additions & 16 deletions .github/workflows/linux_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,32 @@ name: 🐧 Linux Builds
on:
workflow_call:

env:
GODOT4_BIN: godot

jobs:
linux:
runs-on: ubuntu-20.04
runs-on: "ubuntu-22.04"
name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
#arch: ["i686-unknown-linux-gnu", "aarch64-unknown-linux-gnu"]
arch: ["x86_64-unknown-linux-gnu"]
arch: ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu", "aarch64-unknown-linux-gnu", "armv7-unknown-linux-gnueabihf"]
precision: [single] #, double]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
#- uses: chickensoft-games/setup-godot@v1
# name: 🤖 Setup Godot
# with:
# version: 4.3.0
# use-dotnet: false
#- name: 🔬 Verify Setup
# run: |
# godot --version
# which godot
# GODOT4_BIN=godot
- uses: blazium-engine/setup-blazium@master
name: 🤖 Setup Blazium
with:
version: 0.1.184-nightly
- name: 🔬 Verify Setup
run: |
Blazium --version
echo "GODOT4_BIN=$BLAZIUM_EDITOR" >> $GITHUB_ENV
- name: "Install dependencies"
shell: sh
run: |
sudo dpkg --add-architecture aarch64
sudo apt-get update
sudo apt-get install libunwind-dev
sudo apt-get install build-essential
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/macos_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
workflow_call:

env:
GODOT4_BIN: godot
LLVM_PATH: /opt/homebrew/opt/llvm/bin

jobs:
Expand All @@ -20,18 +19,14 @@ jobs:

steps:
- uses: actions/checkout@v4
#- uses: chickensoft-games/setup-godot@v1
# name: 🤖 Setup Godot
# with:
# version: 4.3.0
# use-dotnet: false
#- name: 🔬 Verify Setup
# run: |
# godot --version
# which godot
# GODOT4_BIN=godot
# brew install llvm
# brew link llvm
- uses: blazium-engine/setup-blazium@master
name: 🤖 Setup Blazium
with:
version: 0.1.184-nightly
- name: 🔬 Verify Setup
run: |
Blazium --version
echo "GODOT4_BIN=$BLAZIUM_EDITOR" >> $GITHUB_ENV
- name: Build
uses: ./.github/actions/build
with:
Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/web_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: 🌐 Web Builds
on:
workflow_call:

env:
GODOT4_BIN: godot

jobs:
web:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch }}
strategy:
fail-fast: false
Expand All @@ -22,16 +19,14 @@ jobs:

steps:
- uses: actions/checkout@v4
#- uses: chickensoft-games/setup-godot@v1
# name: 🤖 Setup Godot
# with:
# version: 4.3.0
# use-dotnet: false
#- name: 🔬 Verify Setup
# run: |
# godot --version
# which godot
# GODOT4_BIN=godot
- uses: blazium-engine/setup-blazium@master
name: 🤖 Setup Blazium
with:
version: 0.1.184-nightly
- name: 🔬 Verify Setup
run: |
Blazium --version
echo "GODOT4_BIN=$BLAZIUM_EDITOR" >> $GITHUB_ENV
- name: Set up Emscripten latest
uses: mymindstorm/setup-emsdk@v14
with:
Expand All @@ -52,7 +47,7 @@ jobs:
mkdir -p bin2d/addons/godot-rapier2d/bin/wasm-nothreads
mkdir -p bin3d/addons/godot-rapier3d/bin/wasm-nothreads
if: "${{ matrix.build_param.folder == 'wasm-nothreads' }}"

- name: Build
uses: ./.github/actions/build
with:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/windows_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@ name: 🏁 Windows Builds
on:
workflow_call:

env:
GODOT4_BIN: C:\Users\runneradmin\bin\godot.exe

jobs:
build-windows:
runs-on: "windows-latest"
name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
arch: ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "aarch64-pc-windows-msvc"]
arch: ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "aarch64-pc-windows-msvc", "thumbv7a-pc-windows-msvc"]
precision: [single] #, double]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
#- name: 🔬 Verify Setup
# run: |
# choco install llvm
- uses: blazium-engine/setup-blazium@master
name: 🤖 Setup Blazium
with:
version: 0.1.184-nightly
- name: 🔬 Verify Setup
run: |
Blazium --version
echo "GODOT4_BIN=$BLAZIUM_EDITOR" >> $GITHUB_ENV
- name: Build
uses: ./.github/actions/build
with:
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ bin3d/samples/godot-rapier3d/addons/**
target

!bin2d/addons/godot-rapier2d/bin/libgodot_rapier.macos.framework/Resources/Info.plist
!bin2d/addons/godot-rapier2d/bin/libgodot_rapier.ios.framework/Info.plist
!bin2d/addons/godot-rapier2d/bin/libgodot_rapier.ios.arm64.framework/Info.plist
!bin2d/addons/godot-rapier2d/bin/libgodot_rapier.ios.x86_64.framework/Info.plist

!bin3d/addons/godot-rapier3d/bin/libgodot_rapier.macos.framework/Resources/Info.plist
!bin3d/addons/godot-rapier3d/bin/libgodot_rapier.ios.framework/Info.plist
!bin3d/addons/godot-rapier3d/bin/libgodot_rapier.ios.arm64.framework/Info.plist
!bin3d/addons/godot-rapier3d/bin/libgodot_rapier.ios.x86_64.framework/Info.plist

# Binaries
*.os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>libgodot_rapier.ios</string>
<string>libgodot_rapier</string>
<key>CFBundleName</key>
<string>Godot Rapier2D</string>
<key>CFBundleDisplayName</key>
Expand All @@ -28,5 +28,15 @@
<string>iphoneos</string>
<key>MinimumOSVersion</key>
<string>12.0</string>
<!--
From https://github.com/godot-jolt/godot-jolt/
-->
<key>AvailableLibraries</key>
<array>
<dict>
<key>BinaryPath</key>
<string>libgodot_rapier.dylib</string>
</dict>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>libgodot_rapier</string>
<key>CFBundleName</key>
<string>Godot Rapier2D</string>
<key>CFBundleDisplayName</key>
<string>Godot Rapier2D</string>
<key>CFBundleIdentifier</key>
<string>org.godot-rapier2d.godot-rapier2d</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (c) 2023-present Fabrice Cipolla, Sp3ctralCat and Dragos Daian.</string>
<key>CFBundleVersion</key>
<string>0.12.0</string>
<key>CFBundleShortVersionString</key>
<string>0.12.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>MinimumOSVersion</key>
<string>12.0</string>
<!--
From https://github.com/godot-jolt/godot-jolt/
-->
<key>AvailableLibraries</key>
<array>
<dict>
<key>BinaryPath</key>
<string>libgodot_rapier.dylib</string>
</dict>
</array>
</dict>
</plist>
6 changes: 4 additions & 2 deletions bin2d/addons/godot-rapier2d/godot-rapier2d.gdextension
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ android.debug.x86_32 = "bin/libgodot_rapier.android.i686-linux-android.so"
android.release.x86_32 = "bin/libgodot_rapier.android.i686-linux-android.so"
android.debug.arm64 = "bin/libgodot_rapier.android.aarch64-linux-android.so"
android.release.arm64 = "bin/libgodot_rapier.android.aarch64-linux-android.so"
ios.debug = "bin/libgodot_rapier.ios.framework"
ios.release = "bin/libgodot_rapier.ios.framework"
ios.debug.arm64 = "bin/libgodot_rapier.ios.arm64.framework"
ios.release.arm64 = "bin/libgodot_rapier.ios.arm64.framework"
ios.debug.x86_64 = "bin/libgodot_rapier.ios.framework"
ios.release.x86_64 = "bin/libgodot_rapier.ios.framework"
web.debug.threads.wasm32 = "bin/godot_rapier.wasm"
web.release.threads.wasm32 = "bin/godot_rapier.wasm"
web.debug.wasm32 = "bin/wasm-nothreads/godot_rapier.wasm"
Expand Down
Loading
Loading