Skip to content

Update CI workflow

Update CI workflow #15

Workflow file for this run

name: "HTTPParserC CI"
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PROJECT: HTTPParserC.xcodeproj
SCHEME: HTTPParserC
jobs:
iOS:
name: Build iOS
runs-on: macos-latest
strategy:
matrix:
destination: ["iPhone 8", "iPhone 15", "iPad Air (3rd generation)", "iPad Pro (9.7-inch)"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build iOS
run: |

Check failure on line 32 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 32
set -o pipefail
xcodebuild clean build -project "$PROJECT" -scheme "$SCHEME" -destination "platform=iOS Simulator,name=${{ matrix.destination }}" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;
tvOS:
name: Build tvOS
runs-on: macos-latest
strategy:
matrix:
destination: ["Apple TV", "Apple TV 4K"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build tvOS
run: |
set -o pipefail
xcodebuild clean build -project "$PROJECT" -scheme "$SCHEME" -destination "platform=tvOS Simulator,name=${{ matrix.destination }}" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;
macOS:
name: Build macOS
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build macOS
run: |
set -o pipefail
xcodebuild clean build -project "$PROJECT" -scheme "$SCHEME" -destination "platform=macOS,arch=x86_64" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;