Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor of the iOS CI #823

Merged
merged 1 commit into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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