Skip to content

Commit

Permalink
updated github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jerson committed Mar 7, 2022
1 parent 38c1002 commit 309a4e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@ env:

jobs:
binding_arm7:
runs-on: macos-10.15
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.14.15'
- name: Build
run: make binding_ios_armv7
- run: brew install binutils
- run: |
- name: Build
run: |
export PATH="$PATH:/usr/local/opt/binutils/bin"
make binding_ios_armv7_prefix
make binding_ios_armv7
- uses: actions/upload-artifact@v2
with:
name: output_binding_arm7
Expand Down
9 changes: 3 additions & 6 deletions Makefile.ios
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ binding_ios_armv7:
SDK=iphoneos CC=$(PWD)/clangwrap.sh CGO_CFLAGS="-fembed-bitcode" \
GOOS=darwin GOARCH=arm CGO_ENABLED=1 BINDING_ARGS="-tags ios" \
make binding

binding_ios_armv7_prefix:
objcopy --redefine-syms=ios_syms.txt $(IOS_BINDING_OUTPUT)/armv7.a || echo true
nm $(IOS_BINDING_OUTPUT)/armv7.a | grep OpenPGPBridgeCall || echo true
ld -r output/binding/ios/armv7.a -o output/binding/ios/armv77.a -alias __cgo_panic __cgo_panic_openpgp -unexported_symbol __cgo_panic || echo true
nm $(IOS_BINDING_OUTPUT)/armv7.a | grep OpenPGPBridgeCall || echo true
#objcopy --redefine-syms=ios_syms.txt $(IOS_BINDING_OUTPUT)/armv7.a
#nm $(IOS_BINDING_OUTPUT)/armv7.a | grep OpenPGPBridgeCall
#ld -r output/binding/ios/armv7.a -o output/binding/ios/armv77.a -alias __cgo_panic __cgo_panic_openpgp -unexported_symbol __cgo_panic || echo true

0 comments on commit 309a4e5

Please sign in to comment.