Improve performance hot paths across the app (#86) #187
This file contains hidden or 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: Dev Build | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '**.swift' | |
| - 'Package.swift' | |
| - 'Sources/**' | |
| - 'Tests/**' | |
| - 'Scripts/**' | |
| - '.github/workflows/dev-build.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: macos-26 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4 | |
| - name: Select Xcode version | |
| run: sudo xcode-select -s /Applications/Xcode_26.0.app/Contents/Developer | |
| - name: Show Swift version | |
| run: swift --version | |
| - name: Clear SPM artifacts cache | |
| run: rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts | |
| - name: Get short SHA | |
| id: slug | |
| run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: Build app | |
| env: | |
| AYNA_SIGNING: adhoc | |
| ARCHES: "arm64 x86_64" | |
| run: | | |
| echo "MARKETING_VERSION=0.0.0-dev.${{ steps.slug.outputs.sha_short }}" > version.env | |
| echo "BUILD_NUMBER=${{ github.run_number }}" >> version.env | |
| Scripts/build-app.sh release | |
| - name: Create DMG | |
| run: | | |
| APP_PATH=".build/app/Ayna.app" | |
| if [ ! -d "$APP_PATH" ]; then | |
| echo "Error: Could not find built app at $APP_PATH" | |
| exit 1 | |
| fi | |
| echo "Found app at: $APP_PATH" | |
| # Create a temporary directory for DMG contents | |
| mkdir -p dmg_contents | |
| cp -R "$APP_PATH" dmg_contents/ | |
| # Create DMG | |
| hdiutil create -volname "Ayna-dev" \ | |
| -srcfolder dmg_contents \ | |
| -ov -format UDZO \ | |
| ayna-dev.dmg | |
| - name: Upload DMG | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v4 | |
| with: | |
| name: ayna-dev-${{ steps.slug.outputs.sha_short }} | |
| path: ayna-dev.dmg | |
| retention-days: 30 |