From 3e775be3ba68a4007297229e626aec2a6a8b1ebe Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Tue, 8 Sep 2026 01:06:22 +0700 Subject: [PATCH] Create packs.yml --- .github/workflows/packs.yml | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 .github/workflows/packs.yml diff --git a/.github/workflows/packs.yml b/.github/workflows/packs.yml new file mode 100644 index 0000000..a8b71f4 --- /dev/null +++ b/.github/workflows/packs.yml @@ -0,0 +1,81 @@ +name: Build Unsigned iOS and macOS Apps + +on: + push: + branches: + - main + - develop + - issue-* + pull_request: + branches: + - main + - develop + +jobs: + build-ios: + name: Build Unsigned iOS IPA + runs-on: macos-26 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Xcode version + run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer + + - name: Build Xcode Workspace + run: | + cd Balance && \ + xcodebuild build \ + -project Balance.xcodeproj \ + -scheme Balance \ + -configuration Release \ + -destination 'generic/platform=iOS' \ + -derivedDataPath build/DerivedData \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + CODE_SIGN_IDENTITY="" \ + PROVISIONING_PROFILE_SPECIFIER="" + + - name: Package into IPA + run: | + mkdir -p build/Payload + mv build/DerivedData/Build/Products/Release-iphoneos/Balance.app build/Payload/ + cd build && zip -r Balance.ipa Payload/ + + - name: Upload iOS Artifact + uses: actions/upload-artifact@v4 + with: + name: unsigned-ios-ipa + path: build/Balance.ipa + + build-macos: + name: Build macOS ZIP + runs-on: macos-26 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Xcode version + run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer + + - name: Build macOS App + run: | + xcodebuild build \ + -project Balance.xcodeproj \ + -scheme BalanceMac \ + -configuration Release \ + -derivedDataPath build/DerivedData \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + CODE_SIGN_IDENTITY="" + + - name: Compress macOS App + run: | + cd build/DerivedData/Build/Products/Release + zip -r Balance.zip Balance.app + + - name: Upload macOS Artifact + uses: actions/upload-artifact@v4 + with: + name: unsigned-macos-zip + path: build/DerivedData/Build/Products/Release/Balance.zip