|
3 | 3 | workflow_call:
|
4 | 4 |
|
5 | 5 | env:
|
6 |
| - GODOT4_BIN: godot |
7 | 6 | LLVM_PATH: /opt/homebrew/opt/llvm/bin
|
8 | 7 |
|
9 | 8 | jobs:
|
10 | 9 | ios:
|
11 | 10 | runs-on: "macos-latest"
|
12 |
| - name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch }} |
| 11 | + name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch.name }} |
13 | 12 | strategy:
|
14 | 13 | fail-fast: false
|
15 | 14 | matrix:
|
16 |
| - arch: ["aarch64-apple-ios"] |
| 15 | + arch: [{"name" : "arm64", "rust": "aarch64-apple-ios"}, {"name" : "x86_64", "rust": "x86_64-apple-ios"}] |
17 | 16 | precision: [single] #, double]
|
18 | 17 | dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
|
19 | 18 | features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]
|
20 | 19 |
|
21 | 20 | steps:
|
22 | 21 | - uses: actions/checkout@v4
|
23 |
| - #- uses: chickensoft-games/setup-godot@v1 |
24 |
| - # name: 🤖 Setup Godot |
25 |
| - # with: |
26 |
| - # version: 4.3.0 |
27 |
| - # use-dotnet: false |
28 |
| - #- name: 🔬 Verify Setup |
29 |
| - # run: | |
30 |
| - # godot --version |
31 |
| - # which godot |
32 |
| - # GODOT4_BIN=godot |
33 |
| - # brew install llvm |
34 |
| - # brew link llvm |
| 22 | + - uses: blazium-engine/setup-blazium@master |
| 23 | + name: 🤖 Setup Blazium |
| 24 | + with: |
| 25 | + version: 0.1.184-nightly |
| 26 | + - name: 🔬 Verify Setup |
| 27 | + run: | |
| 28 | + Blazium --version |
| 29 | + echo "GODOT4_BIN=$BLAZIUM_EDITOR" >> $GITHUB_ENV |
35 | 30 | - name: Build
|
36 | 31 | uses: ./.github/actions/build
|
37 | 32 | with:
|
38 |
| - arch: ${{ matrix.arch }} |
| 33 | + arch: ${{ matrix.arch.rust }} |
39 | 34 | features: ${{ matrix.features.feature }},${{ matrix.precision }}-${{ matrix.dimensions.feature }}
|
40 | 35 | - name: Copy to bin
|
41 | 36 | shell: sh
|
42 | 37 | run: |
|
43 |
| - mv target/release/libgodot_rapier.dylib bin${{ matrix.dimensions.short }}/addons/godot-rapier${{ matrix.dimensions.short }}/bin/libgodot_rapier.ios.framework/libgodot_rapier.ios |
44 |
| - mv target/release/libgodot_rapier.a bin${{ matrix.dimensions.short }}/addons/godot-rapier${{ matrix.dimensions.short }}/bin/libgodot_rapier.ios.framework/libgodot_rapier.a |
| 38 | + ls target/release |
| 39 | + 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 |
| 40 | + 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 |
45 | 41 |
|
46 | 42 | - name: Upload
|
47 | 43 | uses: actions/upload-artifact@v4
|
48 | 44 | with:
|
49 |
| - name: godot-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch}} |
| 45 | + name: godot-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch.rust}} |
50 | 46 | path: |
|
51 |
| - bin${{ matrix.dimensions.short }}/**/*.ios |
| 47 | + bin${{ matrix.dimensions.short }}/**/libgodot_rapier |
52 | 48 | if-no-files-found: error
|
53 | 49 |
|
54 | 50 | - name: Upload Static
|
55 | 51 | uses: actions/upload-artifact@v4
|
56 | 52 | with:
|
57 |
| - name: static-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch}} |
| 53 | + name: static-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch.rust}} |
58 | 54 | path: |
|
59 | 55 | bin${{ matrix.dimensions.short }}/**/*.a
|
60 | 56 | if-no-files-found: error
|
0 commit comments