chore: update code signing settings in project.yml and build script #653
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: Lint and Formatting | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Check architecture | |
| run: uname -m | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Show Xcode version | |
| run: xcodebuild -version | |
| - name: Show Swift version | |
| run: swift --version | |
| - name: Install Xcodegen | |
| run: brew install xcodegen | |
| - name: Generate Xcode project | |
| run: xcodegen | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: Run SwiftLint | |
| run: swiftlint lint | |
| - name: Install SwiftFormat | |
| run: brew install swiftformat | |
| - name: Check code formatting | |
| run: swiftformat --lint . | |
| - name: Install Xcbeautify | |
| run: brew install xcbeautify | |
| - name: Clean build folder | |
| run: xcodebuild clean -scheme ora -project Ora.xcodeproj | |
| - name: Cache SPM dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/Library/Caches/org.swift.swiftpm/ | |
| ~/.swiftpm/ | |
| key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.swift') }} | |
| restore-keys: | | |
| ${{ runner.os }}-spm- | |
| - name: Resolve dependencies | |
| run: xcodebuild -resolvePackageDependencies |