Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
- Disabled IPA upload as the library has expired and it is unused.
- Use latest macOS when available.
  • Loading branch information
Carlos Cabanero committed Sep 19, 2024
1 parent 8a4d2b3 commit 1043296
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on: [push]
jobs:
build:

# runs-on: macOS-latest
runs-on: macos-13
runs-on: macOS-latest
#runs-on: macos-13

steps:
# - uses: swift-actions/setup-swift@v1
Expand All @@ -30,23 +30,27 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: ./get_frameworks.sh

- name: get resources
if: steps.cache.outputs.cache-hit != 'true'
run: ./get_resources.sh

- name: copy xcconfig
run: cp template_setup.xcconfig developer_setup.xcconfig

- name: BlinkTests
run: xcodebuild -project Blink.xcodeproj -scheme BlinkTests -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPad Air (5th generation)' test | xcpretty

- name: actual build
run: set -o pipefail && xcodebuild archive -project Blink.xcodeproj -scheme Blink -sdk iphoneos -configuration Debug clean build IPHONEOS_DEPLOYMENT_TARGET='16.1' CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ONLY_ACTIVE_ARCH=NO | tee build.log | xcpretty

- name: generate unsigned debug ipa
run: |
cd ~
mkdir Payload
mv ~/Library/Developer/Xcode/Archives/*/*/Products/Applications/Blink.app ~/Payload/
zip -r Blink.ipa Payload
- name: upload ipa
uses: actions/upload-artifact@v2.2.0
with:
name: 'BlinkShell'
path: ~/Blink.ipa
# - name: actual build
# run: set -o pipefail && xcodebuild archive -project Blink.xcodeproj -scheme Blink -sdk iphoneos -configuration Debug clean build IPHONEOS_DEPLOYMENT_TARGET='16.1' CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ONLY_ACTIVE_ARCH=NO | tee build.log | xcpretty

# - name: generate unsigned debug ipa
# run: |
# cd ~
# mkdir Payload
# mv ~/Library/Developer/Xcode/Archives/*/*/Products/Applications/Blink.app ~/Payload/
# zip -r Blink.ipa Payload
# - name: upload ipa
# uses: actions/upload-artifact@v2.2.0
# with:
# name: 'BlinkShell'
# path: ~/Blink.ipa

0 comments on commit 1043296

Please sign in to comment.