Skip to content

Commit

Permalink
Move shim.c to layer folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gememma committed Oct 28, 2024
1 parent 97cf9ef commit c8ade79
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
run: |
cargo +nightly-2024-09-12 build --release -p mirrord-layer --target=aarch64-apple-darwin
cargo +nightly-2024-09-12 build --release -p mirrord-layer --target=x86_64-apple-darwin
clang -arch arm64e -dynamiclib -o target/aarch64-apple-darwin/release/shim.dylib scripts/shim.c
clang -arch arm64e -dynamiclib -o target/aarch64-apple-darwin/release/shim.dylib mirrord/layer/shim.c
- name: Sign layer binaries and code shim
env:
AC_USERNAME: ${{ secrets.APPLE_DEVELOPER }}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/build_fat_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ codesign -f -s - target/x86_64-apple-darwin/debug/libmirrord_layer.dylib
mkdir -p target/universal-apple-darwin/debug

# create shim to always load arm64 and sign it
clang -arch arm64e -dynamiclib -o target/universal-apple-darwin/debug/shim.dylib scripts/shim.c
clang -arch arm64e -dynamiclib -o target/universal-apple-darwin/debug/shim.dylib mirrord/layer/shim.c
codesign -f -s - target/universal-apple-darwin/debug/shim.dylib

# Create universal binary for mirrord-layer from x86 and shim
Expand Down

0 comments on commit c8ade79

Please sign in to comment.