Empty commit #990
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: Check if Cog buildable | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Build Universal Cog.app | |
| runs-on: macos-15 | |
| env: | |
| XCODE_DERIVEDDATA_PATH: build | |
| steps: | |
| - name: Switch to Xcode 16 | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: 16 | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Unpack libraries | |
| run: > | |
| cd ThirdParty && tar xvf libraries.tar.xz | |
| - name: Run xcodebuild | |
| run: > | |
| xcodebuild | |
| -quiet | |
| -project Cog.xcodeproj | |
| -scheme Cog | |
| -configuration Debug | |
| -arch x86_64 | |
| -arch arm64 | |
| -derivedDataPath $XCODE_DERIVEDDATA_PATH | |
| CODE_SIGNING_ALLOWED=NO | |
| ONLY_ACTIVE_ARCH=NO | |
| build | |
| - name: Package archive | |
| run: > | |
| ditto | |
| -c | |
| -k | |
| --sequesterRsrc | |
| --keepParent | |
| --zlibCompressionLevel 9 | |
| $XCODE_DERIVEDDATA_PATH/Build/Products/Debug/Cog.app | |
| $XCODE_DERIVEDDATA_PATH/Cog.zip | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Cog | |
| path: ${{ env.XCODE_DERIVEDDATA_PATH }}/Cog.zip |