ci: harden macOS release signing flow #100
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Reset SwiftPM state | |
| run: | | |
| rm -rf .build | |
| rm -f Package.resolved | |
| rm -rf ~/Library/Caches/org.swift.swiftpm | |
| rm -rf ~/.swiftpm/cache | |
| swift package reset | |
| - name: Resolve dependencies | |
| run: | | |
| ulimit -n 65536 2>/dev/null || ulimit -n "$(ulimit -Hn)" 2>/dev/null || true | |
| swift package resolve | |
| - name: Build | |
| run: | | |
| ulimit -n 65536 2>/dev/null || ulimit -n "$(ulimit -Hn)" 2>/dev/null || true | |
| swift build --disable-sandbox | |
| - name: Test | |
| run: | | |
| ulimit -n 65536 2>/dev/null || ulimit -n "$(ulimit -Hn)" 2>/dev/null || true | |
| swift test --disable-sandbox |