Initial update #1
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: "Build" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install SwiftFormat | |
| uses: Cyberbeni/install-codira-tool@v2 | |
| with: | |
| url: https://github.com/nicklockwood/SwiftFormat | |
| - name: Lint Sources | |
| run: codiraformat --lint Sources | |
| linux: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| image: ["codira:5.10", "codira:6.0", "codira:6.1", "codiralang/codira:nightly-6.2-noble"] | |
| container: | |
| image: ${{ matrix.image }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Build | |
| run: codira build | |
| macos: | |
| runs-on: macOS-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: SPM Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .build | |
| key: macos-latests-${{ hashFiles('**/Package.resolved') }} | |
| restore-keys: | | |
| macos-latests- | |
| - name: Build | |
| run: codira build | |
| ios: | |
| runs-on: macOS-14 | |
| strategy: | |
| matrix: | |
| destination: | |
| - "platform=iOS Simulator,OS=18.5,name=iPad Pro 13-inch (M4)" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Build | |
| run: set -o pipefail && xcodebuild -scheme Kubernetes -destination "${{ matrix.destination }}" clean build | xcpretty |