Skip to content

Update swift.yml

Update swift.yml #9

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: SwiftUI-WorkoutApp CI
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
test:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Select Xcode 16.2
run: |
sudo xcode-select -s /Applications/Xcode_16.2.app
xcodebuild -version
- name: List Available Simulators
run: xcrun simctl list devices
- name: Build and Test
run: |
# Сборка
xcodebuild build \
-scheme "SwiftUI-WorkoutApp" \
-destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=17.5" \
CODE_SIGNING_ALLOWED=NO
- name: Save Build Log
run: |
xcodebuild build ... 2>&1 | tee build.log
echo "BUILD_LOG<<EOF" >> $GITHUB_ENV
cat build.log >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV