更新营销版本号至 1.7.0 #35
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: Post-merge Validation | |
| on: | |
| push: | |
| branches: [ "main", "develop" ] | |
| jobs: | |
| post-merge-validation: | |
| name: Post-merge Validation | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Xcode version | |
| run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer | |
| - name: Run Data Directory Tests | |
| run: | | |
| xcodebuild test \ | |
| -scheme "AppPorts" \ | |
| -configuration Debug \ | |
| -destination 'platform=macOS' \ | |
| -derivedDataPath build \ | |
| -only-testing:"AppPortsTests/DataDirMoverTests" \ | |
| -only-testing:"AppPortsTests/DataDirScannerTests" \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGN_ENTITLEMENTS="" \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Run Localization Audit (Advisory) | |
| continue-on-error: true | |
| run: | | |
| xcodebuild test \ | |
| -scheme "AppPorts" \ | |
| -configuration Debug \ | |
| -destination 'platform=macOS' \ | |
| -derivedDataPath build \ | |
| -only-testing:"AppPortsTests/LocalizationAuditTests" \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGN_ENTITLEMENTS="" \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Build App | |
| run: | | |
| xcodebuild clean build \ | |
| -scheme "AppPorts" \ | |
| -configuration Release \ | |
| -destination 'platform=macOS' \ | |
| -derivedDataPath build \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGN_ENTITLEMENTS="" \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Zip Application | |
| run: | | |
| cd build/Build/Products/Release | |
| zip -r ../../../../AppPorts.zip AppPorts.app | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: AppPorts-Unsigned | |
| path: AppPorts.zip | |
| retention-days: 5 |