Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rudrankriyam authored Oct 10, 2024
1 parent 84079e1 commit 0308904
Showing 1 changed file with 6 additions and 33 deletions.
39 changes: 6 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,26 @@ name: Build
on:
push:
branches: [main]

jobs:
build:
name: Build XCFramework
runs-on: macos-latest
env:
PACKAGE_NAME: RunveyKit
steps:
- uses: actions/checkout@v4

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: List Xcode details
run: |
xcodebuild -version
swift --version
- name: List project structure
run: |
ls -la
xcodebuild -list
- name: Make Build script executable
run: chmod +x ./.github/build.sh

- name: Build XCFramework
run: |
sh ./.github/build.sh RunveyKit
- name: Verify XCFramework
run: |
ls -la ./RunveyKit.xcframework
xcrun xcframework info ./RunveyKit.xcframework
- name: Create zip archive
run: zip -r ./RunveyKit.xcframework.zip ./RunveyKit.xcframework

sh ./.github/build.sh $PACKAGE_NAME
- name: Create Zip
run: zip -r ./${{ env.PACKAGE_NAME }}.xcframework.zip ./${{ env.PACKAGE_NAME }}.xcframework
- name: Upload artifact to Emerge
uses: EmergeTools/[email protected]
with:
build_type: release
artifact_path: ./RunveyKit.xcframework.zip
artifact_path: ./${{ env.PACKAGE_NAME }}.xcframework.zip
emerge_api_key: ${{ secrets.EMERGE_API_KEY }}

- name: Upload artifact to GitHub
uses: actions/upload-artifact@v3
with:
name: RunveyKit.xcframework
path: ./RunveyKit.xcframework.zip

0 comments on commit 0308904

Please sign in to comment.