From b78a9f73891dcd6f8a118260ad59b175f7a9a335 Mon Sep 17 00:00:00 2001 From: abhishek Date: Tue, 17 Sep 2024 09:15:59 +0530 Subject: [PATCH] testing github action 6 --- .../{run-script.yml => run-ios-script.yml} | 23 ++++--------------- .../scripts/ios.build.cargo.sh | 15 ++++++++---- 2 files changed, 15 insertions(+), 23 deletions(-) rename .github/workflows/{run-script.yml => run-ios-script.yml} (60%) diff --git a/.github/workflows/run-script.yml b/.github/workflows/run-ios-script.yml similarity index 60% rename from .github/workflows/run-script.yml rename to .github/workflows/run-ios-script.yml index 54b495518a..a81fd2754d 100644 --- a/.github/workflows/run-script.yml +++ b/.github/workflows/run-ios-script.yml @@ -1,4 +1,4 @@ -name: Update Datetime File +name: Generate iOS framework on: push: @@ -6,7 +6,7 @@ on: - abhishek_GithubAction2 jobs: - update-datetime: + iOS-framework: runs-on: macos-latest steps: @@ -36,21 +36,6 @@ jobs: REPO: ${{ github.repository }} TAG: ${{ github.ref_name }} run: | - #COMMIT_MESSAGE=$(git log -1 --pretty=%B) - #if [[ "$COMMIT_MESSAGE" == *"RunAction"* ]]; then - echo "Commit message contains 'RunAction'." + echo "executing ios build" chmod +x ./aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh - ./aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh - chmod +x ./create_datetime_file.sh - ./create_datetime_file.sh - #else - #echo "Commit message does not contain 'RunAction'." - #exit 0 - #fi - - #git config --global user.name "abhishek" - #git config --global user.email "abhishek@instnt.org" - - #git add -A - #git commit -m "Update datetime.txt with current date and time" - #git push + ./aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh \ No newline at end of file diff --git a/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh b/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh index a97924ff46..42ecc1a7ab 100755 --- a/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh +++ b/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh @@ -152,7 +152,14 @@ } - generate_bindings - build_uniffi_for_demo - build_ios_xcframework - release_xcframework + testing_method() { + ASSET_URL="https://api.github.com/repos/$REPO/releases/tags/$TAG/assets" + ASSETS_JSON=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "$ASSET_URL") + } + + #generate_bindings + #build_uniffi_for_demo + #build_ios_xcframework + #release_xcframework + + testing_method