From f197d1649e4aaa16453379edb5c373d0be8e4b7b Mon Sep 17 00:00:00 2001 From: rawandhacks <116637541+rawandhacks@users.noreply.github.com> Date: Wed, 11 Dec 2024 00:48:18 +0300 Subject: [PATCH 1/3] Create dart.yml --- .github/workflows/dart.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/dart.yml diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 000000000..4cb12cefb --- /dev/null +++ b/.github/workflows/dart.yml @@ -0,0 +1,42 @@ +name: iOS-ipa-build + +on: + workflow_dispatch: + +jobs: + build-ios: + name: 🎉 iOS Build + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + architecture: x64 + - run: flutter pub get + + + - run: pod repo update + working-directory: ios + + - run: flutter build ios --release --no-codesign + + - run: mkdir Payload + working-directory: build/ios/iphoneos + + - run: mv Runner.app/ Payload + working-directory: build/ios/iphoneos + + - name: Zip output + run: zip -qq -r -9 FlutterIpaExport.ipa Payload + working-directory: build/ios/iphoneos + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: build/ios/iphoneos/FlutterIpaExport.ipa + tag: v1.0 + overwrite: true + body: "This is first release" From 7e5a126c05fba4fbd5e29810e2f26ad9cad9d64e Mon Sep 17 00:00:00 2001 From: rawandhacks <116637541+rawandhacks@users.noreply.github.com> Date: Wed, 11 Dec 2024 01:02:45 +0300 Subject: [PATCH 2/3] Create objective-c-xcode.yml --- .github/workflows/objective-c-xcode.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/objective-c-xcode.yml diff --git a/.github/workflows/objective-c-xcode.yml b/.github/workflows/objective-c-xcode.yml new file mode 100644 index 000000000..add007bf1 --- /dev/null +++ b/.github/workflows/objective-c-xcode.yml @@ -0,0 +1,30 @@ +name: Xcode - Build and Analyze + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + name: Build and analyse default scheme using xcodebuild command + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set Default Scheme + run: | + scheme_list=$(xcodebuild -list -json | tr -d "\n") + default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") + echo $default | cat >default + echo Using default scheme: $default + - name: Build + env: + scheme: ${{ 'default' }} + run: | + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]} From 59dffd3fd5fc8c4d5cb01f4e91e4ee1b47824f92 Mon Sep 17 00:00:00 2001 From: rawandhacks <116637541+rawandhacks@users.noreply.github.com> Date: Wed, 11 Dec 2024 01:08:02 +0300 Subject: [PATCH 3/3] Create swift.yml --- .github/workflows/swift.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 000000000..21ae770fb --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,22 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v