Skip to content

Commit

Permalink
Self-sign the .dylibs of the macOS natives build. Needed starting wit…
Browse files Browse the repository at this point in the history
…h Xcode 15 to run multiple instances of the same app loading those with SharedLibraryLoader.
  • Loading branch information
badlogic committed Dec 20, 2024
1 parent 7316afa commit cf2bf3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build macOS natives
- name: Build iOS natives
run: |
# See https://github.com/actions/virtual-environments/issues/2557
sudo mv /Library/Developer/CommandLineTools/SDKs/* /tmp
Expand Down Expand Up @@ -78,6 +78,10 @@ jobs:
- name: Pack artifacts
run: |
# Needed starting with Xcode 15 to run multiple instances of the same app
find . -name "*.dylib" | grep "libs" | while read dylib; do
codesign -s - -f "$dylib"
done
find . -name "*.a" -o -name "*.dll" -o -name "*.dylib" -o -name "*.so" | grep "libs" > native-files-list
zip natives-macos -@ < native-files-list
Expand Down Expand Up @@ -337,7 +341,7 @@ jobs:
run: |
./gradlew clean fetchNatives
./gradlew buildRunnables build
- name: Upload artifacts to S3
if: env.AWS_ACCESS_KEY_ID != null
run: |
Expand Down

0 comments on commit cf2bf3f

Please sign in to comment.