mirror of
https://github.com/Lakr233/vphone-cli.git
synced 2026-10-01 23:54:35 +08:00
chore: tidy the github action workflow
This commit is contained in:
@@ -16,18 +16,39 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install xcbeautify
|
||||||
|
run: command -v xcbeautify >/dev/null || brew install xcbeautify
|
||||||
|
|
||||||
- name: Toolchain versions
|
- name: Toolchain versions
|
||||||
run: |
|
run: |
|
||||||
swift --version
|
swift --version
|
||||||
xcodebuild -version
|
xcodebuild -version
|
||||||
|
xcbeautify --version
|
||||||
|
|
||||||
- name: Build VPhone.bundle
|
- name: Build VPhone.bundle
|
||||||
env:
|
env:
|
||||||
SWIFT_JOBS: "4"
|
SWIFT_JOBS: "4"
|
||||||
run: |
|
run: |
|
||||||
|
set -o pipefail
|
||||||
|
mkdir -p .build
|
||||||
xcodebuild -workspace VPhone.xcworkspace -scheme VPhone \
|
xcodebuild -workspace VPhone.xcworkspace -scheme VPhone \
|
||||||
-configuration Debug -destination 'platform=macOS,arch=arm64' \
|
-configuration Debug -destination 'platform=macOS,arch=arm64' \
|
||||||
-derivedDataPath .build/XcodeBundle -jobs 4 build
|
-derivedDataPath .build/XcodeBundle -jobs 4 build 2>&1 \
|
||||||
|
| tee .build/xcodebuild.log \
|
||||||
|
| xcbeautify --quiet --disable-logging --renderer github-actions
|
||||||
|
|
||||||
|
# Quiet mode hides unannotated build-phase output, including the reason
|
||||||
|
# a script phase failed. Keep the full log for that case.
|
||||||
|
- name: Show raw build log
|
||||||
|
if: failure()
|
||||||
|
run: tail -n 300 .build/xcodebuild.log
|
||||||
|
|
||||||
|
- name: Upload raw build log
|
||||||
|
if: failure()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: xcodebuild-log
|
||||||
|
path: .build/xcodebuild.log
|
||||||
|
|
||||||
- name: Verify bundle
|
- name: Verify bundle
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -27,18 +27,39 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.release.tag_name || inputs.tag }}
|
ref: ${{ github.event.release.tag_name || inputs.tag }}
|
||||||
|
|
||||||
|
- name: Install xcbeautify
|
||||||
|
run: command -v xcbeautify >/dev/null || brew install xcbeautify
|
||||||
|
|
||||||
- name: Toolchain versions
|
- name: Toolchain versions
|
||||||
run: |
|
run: |
|
||||||
swift --version
|
swift --version
|
||||||
xcodebuild -version
|
xcodebuild -version
|
||||||
|
xcbeautify --version
|
||||||
|
|
||||||
- name: Build VPhone.bundle
|
- name: Build VPhone.bundle
|
||||||
env:
|
env:
|
||||||
SWIFT_JOBS: "4"
|
SWIFT_JOBS: "4"
|
||||||
run: |
|
run: |
|
||||||
|
set -o pipefail
|
||||||
|
mkdir -p .build
|
||||||
xcodebuild -workspace VPhone.xcworkspace -scheme VPhone \
|
xcodebuild -workspace VPhone.xcworkspace -scheme VPhone \
|
||||||
-configuration Release -destination 'platform=macOS,arch=arm64' \
|
-configuration Release -destination 'platform=macOS,arch=arm64' \
|
||||||
-derivedDataPath .build/XcodeBundle -jobs 4 build
|
-derivedDataPath .build/XcodeBundle -jobs 4 build 2>&1 \
|
||||||
|
| tee .build/xcodebuild.log \
|
||||||
|
| xcbeautify --quiet --disable-logging --renderer github-actions
|
||||||
|
|
||||||
|
# Quiet mode hides unannotated build-phase output, including the reason
|
||||||
|
# a script phase failed. Keep the full log for that case.
|
||||||
|
- name: Show raw build log
|
||||||
|
if: failure()
|
||||||
|
run: tail -n 300 .build/xcodebuild.log
|
||||||
|
|
||||||
|
- name: Upload raw build log
|
||||||
|
if: failure()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: xcodebuild-log
|
||||||
|
path: .build/xcodebuild.log
|
||||||
|
|
||||||
- name: Verify bundle
|
- name: Verify bundle
|
||||||
run: |
|
run: |
|
||||||
@@ -68,15 +89,37 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.release.tag_name || inputs.tag }}
|
ref: ${{ github.event.release.tag_name || inputs.tag }}
|
||||||
|
|
||||||
|
- name: Install xcbeautify
|
||||||
|
run: command -v xcbeautify >/dev/null || brew install xcbeautify
|
||||||
|
|
||||||
- name: Toolchain versions
|
- name: Toolchain versions
|
||||||
run: xcodebuild -version
|
run: |
|
||||||
|
xcodebuild -version
|
||||||
|
xcbeautify --version
|
||||||
|
|
||||||
- name: Build vphone-launchpad.app
|
- name: Build vphone-launchpad.app
|
||||||
run: |
|
run: |
|
||||||
|
set -o pipefail
|
||||||
|
mkdir -p .build
|
||||||
xcodebuild -project VPhoneLaunchpad/VPhoneLaunchpad.xcodeproj \
|
xcodebuild -project VPhoneLaunchpad/VPhoneLaunchpad.xcodeproj \
|
||||||
-scheme VPhoneLaunchpad -configuration Release \
|
-scheme VPhoneLaunchpad -configuration Release \
|
||||||
-destination 'platform=macOS,arch=arm64' \
|
-destination 'platform=macOS,arch=arm64' \
|
||||||
-derivedDataPath .build/XcodeLaunchpad build
|
-derivedDataPath .build/XcodeLaunchpad build 2>&1 \
|
||||||
|
| tee .build/xcodebuild.log \
|
||||||
|
| xcbeautify --quiet --disable-logging --renderer github-actions
|
||||||
|
|
||||||
|
# Quiet mode hides unannotated build-phase output, including the reason
|
||||||
|
# a script phase failed. Keep the full log for that case.
|
||||||
|
- name: Show raw build log
|
||||||
|
if: failure()
|
||||||
|
run: tail -n 300 .build/xcodebuild.log
|
||||||
|
|
||||||
|
- name: Upload raw build log
|
||||||
|
if: failure()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: xcodebuild-log-launchpad
|
||||||
|
path: .build/xcodebuild.log
|
||||||
|
|
||||||
# The asset name must not match Launchpad's own `^VPhone-.+\.zip$`
|
# The asset name must not match Launchpad's own `^VPhone-.+\.zip$`
|
||||||
# bundle asset pattern.
|
# bundle asset pattern.
|
||||||
|
|||||||
@@ -355,3 +355,4 @@ setup_logs/
|
|||||||
# vphone-launchpad signing team; never committed
|
# vphone-launchpad signing team; never committed
|
||||||
VPhoneLaunchpad/Configuration/Developer.xcconfig
|
VPhoneLaunchpad/Configuration/Developer.xcconfig
|
||||||
VPhoneLaunchpad/Configuration/DevelopmentDeveloper.xcconfig
|
VPhoneLaunchpad/Configuration/DevelopmentDeveloper.xcconfig
|
||||||
|
.claude/worktrees
|
||||||
|
|||||||
Reference in New Issue
Block a user