0.14.3 Preserve unknown test plan keys + prune unlinked targets #28
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: Release | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| name: Build for macos-universal | |
| runs-on: macos-14 | |
| steps: | |
| - name: Set Xcode version | |
| run: sudo xcode-select -s /Applications/Xcode_16.2.app | |
| - uses: swift-actions/setup-swift@v2 | |
| with: | |
| swift-version: "6.0" | |
| - uses: actions/checkout@v4 | |
| - name: Install the binary | |
| run: ./install.sh | |
| - name: Upload the binary | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: xcode-selective-test.tar.gz | |
| name: xcode-selective-test | |
| check-portability: | |
| needs: build | |
| name: TestRun on ${{ matrix.destination.os }} for macos-universal | |
| runs-on: ${{ matrix.destination.os }} | |
| strategy: | |
| matrix: | |
| destination: | |
| - { os: macos-15 } | |
| - { os: macos-14 } | |
| - { os: macos-13 } | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: xcode-selective-test | |
| - name: Unpack the binary | |
| run: tar -xvf xcode-selective-test.tar.gz | |
| - name: Run the binary | |
| run: ./xcode-selective-test -h | |
| make-artifact-bundle: | |
| needs: [build, check-portability] | |
| runs-on: ubuntu-latest | |
| outputs: | |
| checksum: ${{ steps.checksum.outputs.checksum }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: xcode-selective-test | |
| - run: ./spm-artifact-bundle.sh ${{ github.event.release.tag_name || github.ref_name }} | |
| - name: Upload artifact bundle | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: xcode-selective-test.artifactbundle.zip | |
| path: xcode-selective-test.artifactbundle.zip | |
| - name: Compute checksum | |
| id: checksum | |
| run: echo "checksum=$(swift package compute-checksum xcode-selective-test.artifactbundle.zip)" >> "$GITHUB_OUTPUT" | |
| deploy-binary: | |
| if: ${{ github.event_name == 'release' }} | |
| needs: [check-portability, make-artifact-bundle] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| merge-multiple: true | |
| - name: Deploy the binary | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body: | | |
| ### Binary artifactbundle | |
| ```swift | |
| .binaryTarget( | |
| name: "xcode-selective-test", | |
| url: "https://github.com/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }}/xcode-selective-test.artifactbundle.zip", | |
| checksum: "${{ needs.make-artifact-bundle.outputs.checksum }}" | |
| ) | |
| ``` | |
| append_body: true | |
| files: | | |
| xcode-selective-test.tar.gz | |
| xcode-selective-test.artifactbundle.zip |