From 939a3f5511ffc57031de494f094249e9d813ff9a Mon Sep 17 00:00:00 2001 From: Jordy Samuel Date: Sat, 9 Mar 2024 21:25:41 +0800 Subject: [PATCH] feat: test github action builds --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..01137df --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: ios-sdk-ci + +on: + pull_request: + branches: ["master"] + push: + branches: ["master"] + +jobs: + build: + runs-on: macOS + + steps: + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v2 + with: + aws-region: us-east-1 + role-to-assume: arn:aws:iam::514563129364:role/circlefin-ops-github-actions + role-duration-seconds: 1200 + + - name: Checkout ios-sdk repository + uses: actions/checkout@v3 + + - name: Build iOS SDK + run: | + cd 'Sample App' + xcodebuild clean + pod install + + xcodebuild build-for-testing -workspace w3s-ios-sample-app-wallets.xcworkspace -scheme "w3s-ios-sample-app-wallets" -configuration "Debug" -destination "platform=iOS Simulator,name=iPhone 8 Plus,OS=latest"