Update actions/upload-artifact action to v5 #63
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: macOS | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| macos-build-release: | |
| runs-on: macOS-latest | |
| strategy: | |
| matrix: | |
| xcode: ["14.2", "13.4.1"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Select Xcode ${{ matrix.xcode }} | |
| run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | |
| - name: Build Release | |
| run: make buildRelease | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
| - name: Build SimctlCLI Release | |
| run: make buildSimctlCLI | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
| - name: Upload build artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: build-artifacts-${{ matrix.xcode }}-${{ github.run_id }} | |
| path: | | |
| *.lcov | |
| .build/*.yaml | |
| .build/**/*.a | |
| .build/**/*.so | |
| .build/**/*.dylib | |
| .build/**/*.dSYM | |
| .build/**/*.json |