Fix xcversion select #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release project | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
buildForAllSupportedPlatforms: | |
name: Build for ${{ matrix.targetPlatform }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
targetPlatform: | |
- iOS # Build an iOS player. | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- uses: actions/cache@v3 | |
with: | |
path: Library | |
key: Library-${{ matrix.targetPlatform }} | |
restore-keys: Library- | |
- uses: game-ci/[email protected] | |
env: | |
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
with: | |
targetPlatform: ${{ matrix.targetPlatform }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Build-${{ matrix.targetPlatform }} | |
path: build/${{ matrix.targetPlatform }} | |
generateIPA: | |
needs: buildForAllSupportedPlatforms | |
name: Generate IPA | |
runs-on: macos-13 | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
name: Build-iOS | |
path: build/iOS | |
- name: Generate IPA File | |
run: | | |
cd build/iOS/iOS | |
mkdir archive | |
xcversion select 14.3.1 | |
xcodebuild -scheme "Unity-iPhone" -target "Unity-iPhone" -sdk iphoneos -archivePath archive/iBMS.xcarchive -configuration Release archive CODE_SIGN_IDENTITY="" CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | |
cp -r archive/iBMS.xcarchive/Products/Applications/iBMS.app/ ./Payload/iBMS.app | |
rm -f ./Payload/.DS_Store | |
zip -r iBMS.ipa ./Payload | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: IPA | |
path: build/iOS/iOS/iBMS.ipa |