Skip to content

Commit

Permalink
ci: use xcbeautify in spm build
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao committed Jan 24, 2024
1 parent b4b310a commit c8cb61b
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions .github/workflows/spm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: SPM
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
Expand All @@ -17,7 +19,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingAutotracker -destination 'platform=iOS Simulator,name=iPhone 14' -quiet
run: |
xcodebuild build -scheme GrowingAutotracker -destination 'platform=iOS Simulator,name=iPhone 14' \
| xcbeautify --renderer github-actions
autotracker-build-catalyst:
runs-on: macos-latest
Expand All @@ -27,7 +31,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingAutotracker -destination 'platform=macOS,variant=Mac Catalyst' -quiet
run: |
xcodebuild build -scheme GrowingAutotracker -destination 'platform=macOS,variant=Mac Catalyst' \
| xcbeautify --renderer github-actions
tracker-build-iOS:
runs-on: macos-latest
Expand All @@ -37,7 +43,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingTracker -destination 'platform=iOS Simulator,name=iPhone 14' -quiet
run: |
xcodebuild build -scheme GrowingTracker -destination 'platform=iOS Simulator,name=iPhone 14' \
| xcbeautify --renderer github-actions
tracker-build-catalyst:
runs-on: macos-latest
Expand All @@ -47,7 +55,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingTracker -destination 'platform=macOS,variant=Mac Catalyst' -quiet
run: |
xcodebuild build -scheme GrowingTracker -destination 'platform=macOS,variant=Mac Catalyst' \
| xcbeautify --renderer github-actions
tracker-build-macos:
runs-on: macos-latest
Expand All @@ -57,7 +67,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingTracker -destination 'platform=macOS' -quiet
run: |
xcodebuild build -scheme GrowingTracker -destination 'platform=macOS' \
| xcbeautify --renderer github-actions
ads-build-iOS:
runs-on: macos-latest
Expand All @@ -67,7 +79,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_Ads -destination 'platform=iOS Simulator,name=iPhone 14' -quiet
run: |
xcodebuild build -scheme GrowingModule_Ads -destination 'platform=iOS Simulator,name=iPhone 14' \
| xcbeautify --renderer github-actions
apm-build-iOS:
runs-on: macos-latest
Expand All @@ -77,7 +91,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_APM -destination 'platform=iOS Simulator,name=iPhone 14' -quiet
run: |
xcodebuild build -scheme GrowingModule_APM -destination 'platform=iOS Simulator,name=iPhone 14' \
| xcbeautify --renderer github-actions
apm-build-catalyst:
runs-on: macos-latest
Expand All @@ -87,7 +103,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_APM -destination 'platform=macOS,variant=Mac Catalyst' -quiet
run: |
xcodebuild build -scheme GrowingModule_APM -destination 'platform=macOS,variant=Mac Catalyst' \
| xcbeautify --renderer github-actions
hybrid-build-iOS:
runs-on: macos-latest
Expand All @@ -97,7 +115,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=iOS Simulator,name=iPhone 14' -quiet
run: |
xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=iOS Simulator,name=iPhone 14' \
| xcbeautify --renderer github-actions
hybrid-build-catalyst:
runs-on: macos-latest
Expand All @@ -107,7 +127,9 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=macOS,variant=Mac Catalyst' -quiet
run: |
xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=macOS,variant=Mac Catalyst' \
| xcbeautify --renderer github-actions
imp-build-iOS:
runs-on: macos-latest
Expand All @@ -117,4 +139,6 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: xcodebuild build -scheme GrowingModule_ImpressionTrack -destination 'platform=iOS Simulator,name=iPhone 14' -quiet
run: |
xcodebuild build -scheme GrowingModule_ImpressionTrack -destination 'platform=iOS Simulator,name=iPhone 14' \
| xcbeautify --renderer github-actions

0 comments on commit c8cb61b

Please sign in to comment.