Skip to content

Commit

Permalink
iOS CI refactor with vendored libsodium and libzmq build scripts (#823)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
  • Loading branch information
bobozaur authored May 15, 2023
1 parent e7a62de commit 5ecad0a
Show file tree
Hide file tree
Showing 58 changed files with 654 additions and 6,932 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -538,38 +538,6 @@ jobs:
name: libvcx-ios-${{ env.PUBLISH_VERSION }}-universal
path: /tmp/artifacts/libvcx-ios-${{ env.PUBLISH_VERSION }}-universal.zip

build-and-publish-ios-legacy-wrapper:
needs: workflow-setup
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' && needs.workflow-setup.outputs.SKIP_IOS != 'true' }}
runs-on: macos-11
env:
LIBVCX_VERSION: ${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}
PUBLISH_VERSION: ${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}
steps:
- name: "Git checkout"
uses: actions/checkout@v2
- name: Switch to xcode version 12.4
run: |
sudo xcode-select --switch /Applications/Xcode_12.4.app/Contents/Developer
xcodebuild -version
- name: "Build Legacy iOS wrapper"
run: |
./wrappers/ios_legacy/ci/build.sh
- name: "Rename device as legacy"
run: |
mv /tmp/artifacts/libvcx-ios-${{ env.PUBLISH_VERSION }}-device.zip /tmp/artifacts/libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-device.zip
- name: "Rename universal as legacy"
run: |
mv /tmp/artifacts/libvcx-ios-${{ env.PUBLISH_VERSION }}-universal.zip /tmp/artifacts/libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-universal.zip
- uses: actions/upload-artifact@v3
with:
name: libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-device
path: /tmp/artifacts/libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-device.zip
- uses: actions/upload-artifact@v3
with:
name: libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-universal
path: /tmp/artifacts/libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-universal.zip

build-and-publish-android-device:
runs-on: ubuntu-20.04
needs: [ workflow-setup, build-docker-android ]
Expand Down Expand Up @@ -841,7 +809,6 @@ jobs:
needs:
- workflow-setup
- build-and-publish-ios-wrapper
- build-and-publish-ios-legacy-wrapper
- build-and-publish-android-device
- build-and-publish-android-emulator
- test-unit-workspace
Expand Down Expand Up @@ -955,25 +922,6 @@ jobs:
asset_name: libvcx-ios-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-device.zip
asset_content_type: application/zip

release-ios-legacy-device:
runs-on: ubuntu-20.04
needs: [ workflow-setup, make-release ]
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' }}
steps:
- name: "Fetch iOS device build from artifacts"
uses: actions/download-artifact@v2
with:
name: libvcx-ios-legacy-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-device
- name: "Upload release assets"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.make-release.outputs.RELEASE_UPLOAD_URL }}
asset_path: ./libvcx-ios-legacy-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-device.zip
asset_name: libvcx-ios-legacy-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-device.zip
asset_content_type: application/zip

release-ios-universal:
runs-on: ubuntu-20.04
needs: [ workflow-setup, make-release ]
Expand All @@ -992,22 +940,3 @@ jobs:
asset_path: ./libvcx-ios-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-universal.zip
asset_name: libvcx-ios-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-universal.zip
asset_content_type: application/zip

release-ios-legacy-universal:
runs-on: ubuntu-20.04
needs: [ workflow-setup, make-release ]
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' }}
steps:
- name: "Fetch iOS universal build from artifacts"
uses: actions/download-artifact@v2
with:
name: libvcx-ios-legacy-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-universal
- name: "Upload release assets"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.make-release.outputs.RELEASE_UPLOAD_URL }}
asset_path: ./libvcx-ios-legacy-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-universal.zip
asset_name: libvcx-ios-legacy-${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}-universal.zip
asset_content_type: application/zip
Loading

0 comments on commit 5ecad0a

Please sign in to comment.