β‘ optimize release build size #33
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: Build | |
on: | |
push: { branches: ['alpha', 'beta', 'main'] } | |
pull_request: { branches: ['alpha', 'beta', 'main'] } | |
jobs: | |
build: | |
name: Xcode Build | |
runs-on: macos-13 | |
steps: | |
- name: Select Xcode Version | |
run: sudo xcrun xcode-select -s /Applications/Xcode_14.3.app | |
- name: Set Environment Variables | |
run: | | |
APP_NAME="BeezyLight" | |
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV | |
echo "XCARCHIVE_PATH=${PWD}/${APP_NAME}.xcarchive" >> $GITHUB_ENV | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run xcode-build Script | |
run: './Scripts/xcode-build build "$XCARCHIVE_PATH"' | |
- name: Upload Archive to Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.APP_NAME }}.xcarchive | |
path: ${{ env.XCARCHIVE_PATH }} | |
if-no-files-found: error | |
- name: Check Git Status | |
run: git status --porcelain |