Skip to content

Feat/version env release flow #203

Feat/version env release flow

Feat/version env release flow #203

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on:
push:
branches:
- "phase-**"
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: Build
runs-on: macos-26
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Xcode and Swift version
run: |
xcodebuild -version
swift --version
- name: Install xcbeautify
run: brew install xcbeautify
- name: Cache DerivedData
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-derived-data-${{ hashFiles('perch.xcodeproj/project.pbxproj', 'perch.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}
restore-keys: |
${{ runner.os }}-derived-data-
- name: Build
run: |
set -euo pipefail
xcodebuild \
-scheme perch \
-configuration Debug \
-destination 'platform=macOS' \
-skipPackagePluginValidation \
-skipMacroValidation \
-jobs "$(sysctl -n hw.logicalcpu)" \
CODE_SIGNING_ALLOWED=NO \
build \
2>&1 | xcbeautify
lint:
name: Lint
runs-on: macos-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install swift-format
run: brew install swift-format
- name: Lint
run: swift-format lint --recursive perch/ perchTests/