Skip to content

abtesting warning fixes #749

abtesting warning fixes

abtesting warning fixes #749

Workflow file for this run

name: Performance

Check failure on line 1 in .github/workflows/performance.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/performance.yml

Invalid workflow file

(Line: 56, Col: 3): 'spm' is already defined
on:
push:
branches: [ main ]
paths:
- '.github/workflows/performance.yml'
- 'performance/**'
- 'scripts/*'
- 'scripts/performance.sh'
- '!performance/SwiftUIPerformanceQuickstart/PerformanceExample/*.md'
- '!performance/SwiftUIPerformanceQuickstart/PerformanceExample/Design/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/performance.yml'
- 'performance/**'
- 'scripts/*'
- 'scripts/performance.sh'
- '!performance/SwiftUIPerformanceQuickstart/PerformanceExample/*.md'
- '!performance/SwiftUIPerformanceQuickstart/PerformanceExample/Design/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
SAMPLE: Performance
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
jobs:
spm:
name: spm
runs-on: macOS-15
env:
SPM: true
LEGACY: false
OS: iOS
DEVICE: iPhone 16
TEST: true
DIR: performance
SCHEME: PerformanceExampleSwift
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd performance
gem install xcpretty
../scripts/install_prereqs/performance.sh
- name: Build Swift
run: ./scripts/test.sh
spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-15
strategy:
matrix:
xcode: ["16.4"]
os: [iOS, tvOS]
include:
- os: iOS
device: iPhone 16
test: false
- os: tvOS
device: Apple TV 4K (3rd generation) (at 1080p)
test: false
env:
SETUP: performance
SPM: true
DIR: performance/SwiftUIPerformanceQuickstart/PerformanceExample
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: ${{ matrix.test }}
XCODE_VERSION: ${{ matrix.xcode }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
gem install xcpretty
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${{ matrix.os }})
run: ./scripts/test.sh