Skip to content

Commit

Permalink
Upgrade CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
BB9z committed Jan 3, 2024
1 parent aaf8c62 commit 77899fc
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/ci.yml
Expand Up @@ -3,19 +3,28 @@ name: Swift Package
on: [push, pull_request]

jobs:
build:
runs-on: macos-latest
spm:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: SPM Build
run: swift build
- name: SPM Test
run: swift test
- name: macOS Build
run: xcodebuild build -scheme B9AssociatedObject -destination 'generic/platform=macOS' | xcbeautify
- name: iOS Build
run: xcodebuild build -scheme B9AssociatedObject -destination 'generic/platform=iOS' | xcbeautify
- name: tvOS Build
run: xcodebuild build -scheme B9AssociatedObject -destination 'generic/platform=tvOS' | xcbeautify
- name: watchOS Build
run: xcodebuild build -scheme B9AssociatedObject -destination 'generic/platform=watchOS' | xcbeautify

xcode:
runs-on: macos-13
name: "Xcode - ${{ matrix.platform }}"
strategy:
matrix:
include:
- platform: macOS
- platform: iOS
- platform: tvOS
- platform: watchOS
steps:
- uses: actions/checkout@v4
- name: "${{ matrix.platform }} Build"
run: |
set -o pipefail
xcodebuild build -scheme B9AssociatedObject -destination "generic/platform=${{ matrix.platform }}" | xcbeautify

0 comments on commit 77899fc

Please sign in to comment.