Skip to content

Build

Build #632

Workflow file for this run

name: Build
on:
push:
paths-ignore:
- 'README.md'
- 'CHANGES.md'
- 'LICENSE'
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: macos-14
env:
XCODE: /Applications/Xcode_15.2.app
XCODE_SDK: iphoneos17.2
steps:
- uses: actions/checkout@v4
- name: Select Xcode Version
run: sudo xcode-select -s '${{ env.XCODE }}/Contents/Developer'
- name: Show Xcode Version
run: xcodebuild -version
- name: Show CocoaPods Version
run: pod --version
- name: Restore Pods
uses: actions/cache@v4
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Dependences
run: |
pod repo update
pod install
- name: Create Environment.swift
run: cp SoraQuickStart/Environment.example.swift SoraQuickStart/Environment.swift
- name: Build Xcode Project
run: |
set -o pipefail && \
xcodebuild \
-workspace 'SoraQuickStart.xcworkspace' \
-scheme 'SoraQuickStart' \
-sdk ${{ env.XCODE_SDK }} \
-arch arm64 \
-configuration Release \
-derivedDataPath build \
clean build \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGN_IDENTITY= \
PROVISIONING_PROFILE= \
ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS=NO
- name: Check uncommitted unformatted code
run: |
./lint-format.sh
release:
if: contains(github.ref, 'tags/v')
needs: [build]
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false