feat: Mod Loader 安装 #104
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Test | |
| on: | |
| pull_request: | |
| paths: | |
| - 'Configs/**' | |
| - '.github/workflows/**' | |
| - 'PCL.Mac/**' | |
| - 'PCL.Mac.Core/**' | |
| - 'PCL.Mac.xcodeproj/**' | |
| - 'Resources/**' | |
| jobs: | |
| build: | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build app | |
| run: | | |
| PR_NUMBER=${{ github.event.pull_request.number }} | |
| if [ -z "$PR_NUMBER" ]; then PR_NUMBER=0; fi | |
| BUILD_NUMBER=$(printf "%d%05d" "$PR_NUMBER" "$(git rev-list --count HEAD)") | |
| xcodebuild \ | |
| -project PCL.Mac.xcodeproj -scheme PCL.Mac -configuration Debug \ | |
| CURRENT_PROJECT_VERSION=$BUILD_NUMBER \ | |
| -archivePath build archive | |
| - name: Check build artifacts | |
| run: | | |
| file build.xcarchive/Products/Applications/PCL.Mac.app |