Skip to content

Commit d83a3c5

Browse files
ci: adjust for dynamic loading
1 parent e845e61 commit d83a3c5

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,15 @@ jobs:
6464
path: TypeTreeGeneratorAPI
6565
- name: Publish TypeTreeGeneratorAPI with dotnet
6666
run: dotnet publish TypeTreeGeneratorAPI/TypeTreeGeneratorAPI -o out --runtime ${{ matrix.rid }} -p:EnableAssetRipper=false -p:EnableAssetStudio=false -p:EnableAssetsTools=true -p:EnableIL2CPP=false
67-
- name: Copy importlib to out
68-
if: runner.os == 'windows'
69-
run: cp TypeTreeGeneratorAPI/TypeTreeGeneratorAPI/bin/Release/net9.0/win-x64/native/TypeTreeGeneratorAPI.lib ./out/
67+
- name: Copy
68+
shell: bash
69+
run: cp ./out/{lib,}TypeTreeGenerator.{so,dll,dylib} data/purelib/unity_scene_repacker.libs
7070

7171
- name: Build bindings
72-
env:
73-
RUSTFLAGS: "-L out"
7472
run: cargo build --release -p bindings
7573
- name: Copy artifacts
7674
shell: bash # todo: replace this with --artifact-dir when finally stable
77-
run: |
78-
if [[ "${{ runner.os }}" == "Windows" ]]; then
79-
cp target/release/unityscenerepacker.dll out/unityscenerepacker.dll
80-
elif [[ "${{ runner.os }}" == "macOS" ]]; then
81-
cp target/release/libunityscenerepacker.dylib out/libunityscenerepacker.dylib
82-
else
83-
cp target/release/libunityscenerepacker.so out/libunityscenerepacker.so
84-
fi
75+
run: cp target/release/{lib,}unityscenerepacker.{so,dll,dylib} out
8576

8677
- name: Upload bindings
8778
uses: actions/upload-artifact@v4
@@ -90,22 +81,12 @@ jobs:
9081
path: out/*
9182

9283
- name: Build cli wheels
93-
env:
94-
RUSTFLAGS: "-L out"
95-
LD_LIBRARY_PATH: "${{ github.workspace }}/out"
9684
uses: jakobhellermann/maturin-action@allow-ld-env
9785
with:
9886
target: ${{ matrix.target }}
99-
args: --release --out dist_pre
87+
args: --release --out dist
10088
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
10189
manylinux: ${{ matrix.manylinux }}
102-
- name: Build cli wheels
103-
env:
104-
LD_LIBRARY_PATH: "${{ github.workspace }}/out"
105-
shell: bash
106-
run: |
107-
uvx auditwheel dist_pre/* -w dist
108-
10990

11091
- name: Upload wheels
11192
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)