Skip to content

Commit

Permalink
make sure we upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Oct 16, 2023
1 parent 9b3bce7 commit 50348c8
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 1 deletion.
92 changes: 91 additions & 1 deletion .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,56 @@ jobs:

- run: make EXPECTED_XCODE_VERSION=14.2 ios

- uses: actions/upload-artifact@v3
with:
name: libcrypto.xcframework.zip
path: ./MOBILE/ios/libcrypto.xcframework.zip

- uses: actions/upload-artifact@v3
with:
name: libcrypto.podspec
path: ./MOBILE/ios/libcrypto.podspec

- uses: actions/upload-artifact@v3
with:
name: libevent.xcframework.zip
path: ./MOBILE/ios/libevent.xcframework.zip

- uses: actions/upload-artifact@v3
with:
name: libevent.podspec
path: ./MOBILE/ios/libevent.podspec

- uses: actions/upload-artifact@v3
with:
name: libssl.xcframework.zip
path: ./MOBILE/ios/libssl.xcframework.zip

- uses: actions/upload-artifact@v3
with:
name: libssl.podspec
path: ./MOBILE/ios/libssl.podspec

- uses: actions/upload-artifact@v3
with:
name: libtor.xcframework.zip
path: ./MOBILE/ios/libtor.xcframework.zip

- uses: actions/upload-artifact@v3
with:
name: libtor.podspec
path: ./MOBILE/ios/libtor.podspec

- uses: actions/upload-artifact@v3
with:
name: libz.xcframework.zip
path: ./MOBILE/ios/libz.xcframework.zip

- uses: actions/upload-artifact@v3
with:
name: libz.podspec
path: ./MOBILE/ios/libz.podspec

- uses: actions/upload-artifact@v3
with:
name: oonimkall.xcframework.zip
Expand All @@ -60,6 +110,46 @@ jobs:
with:
fetch-depth: 0

- uses: actions/download-artifact@v3
with:
name: libcrypto.xcframework.zip

- uses: actions/download-artifact@v3
with:
name: libcrypto.podspec

- uses: actions/download-artifact@v3
with:
name: libevent.xcframework.zip

- uses: actions/download-artifact@v3
with:
name: libevent.podspec

- uses: actions/download-artifact@v3
with:
name: libssl.xcframework.zip

- uses: actions/download-artifact@v3
with:
name: libssl.podspec

- uses: actions/download-artifact@v3
with:
name: libtor.xcframework.zip

- uses: actions/download-artifact@v3
with:
name: libtor.podspec

- uses: actions/download-artifact@v3
with:
name: libz.xcframework.zip

- uses: actions/download-artifact@v3
with:
name: libz.podspec

- uses: actions/download-artifact@v3
with:
name: oonimkall.xcframework.zip
Expand All @@ -68,7 +158,7 @@ jobs:
with:
name: oonimkall.podspec

- run: ./script/ghpublish.bash oonimkall.xcframework.zip oonimkall.podspec
- run: ./script/ghpublish.bash libcrypto.xcframework.zip libcrypto.podspec libevent.xcframework.zip libevent.podspec libssl.xcframework.zip libssl.podspec libtor.xcframework.zip libtor.podspec libz.xcframework.zip libz.podspec oonimkall.xcframework.zip oonimkall.podspec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
10 changes: 10 additions & 0 deletions internal/cmd/ghgen/ios.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ func buildAndPublishMobileIOS(w io.Writer, job *Job) {

buildJob := "build_ios_mobile"
artifacts := []string{
"./MOBILE/ios/libcrypto.xcframework.zip",
"./MOBILE/ios/libcrypto.podspec",
"./MOBILE/ios/libevent.xcframework.zip",
"./MOBILE/ios/libevent.podspec",
"./MOBILE/ios/libssl.xcframework.zip",
"./MOBILE/ios/libssl.podspec",
"./MOBILE/ios/libtor.xcframework.zip",
"./MOBILE/ios/libtor.podspec",
"./MOBILE/ios/libz.xcframework.zip",
"./MOBILE/ios/libz.podspec",
"./MOBILE/ios/oonimkall.xcframework.zip",
"./MOBILE/ios/oonimkall.podspec",
}
Expand Down

0 comments on commit 50348c8

Please sign in to comment.