Skip to content

Commit 3356c0f

Browse files
authored
Add a universal build step for the library build
1 parent eee7f77 commit 3356c0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/dargon2_library-builder.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
git clone https://github.com/P-H-C/phc-winner-argon2.git argon2_library
4141
cd argon2_library
4242
make
43+
mv libargon2.1.dylib libargon2.1-x86_64.dylib
44+
CFLAGS=--target=arm64-apple-macos11 make OPTTARGET=aarch64
45+
mv libargon2.1.dylib libargon2.1-arm64.dylib
46+
lipo -create libargon2.1-x86_64.dylib libargon2.1-arm64.dylib -output libargon2.1.dylib
4347
- name: copy and push library
4448
run: |
4549
cp argon2_library/libargon2.1.dylib lib/src/blobs/libargon2-darwin.dylib

0 commit comments

Comments
 (0)