ci: remove macos-13 #3
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 disk_analyzer_cli | |
| on: | |
| push: | |
| tags: | |
| - "disk_analyzer_cli-v[0-9]+.[0-9]+.[0-9]+" | |
| jobs: | |
| build_disk_analyzer_cli: | |
| defaults: | |
| run: | |
| working-directory: disk_analyzer_cli | |
| name: Build disk_analyzer_cli | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| asset-name: disk_analyzer_cli_linux_x64 | |
| - os: windows-latest | |
| asset-name: disk_analyzer_cli_windows_x64 | |
| - os: macos-latest | |
| asset-name: disk_analyzer_cli_macos_arm64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| - run: dart pub get | |
| - name: Build CLI bundle | |
| run: dart build cli --target bin/disk_analyzer_cli.dart --output build/${{ matrix.asset-name }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: bundle-${{ matrix.asset-name }} | |
| path: disk_analyzer_cli/build/${{ matrix.asset-name }}/bundle | |
| upload_artifacts: | |
| needs: build_disk_analyzer_cli | |
| name: Upload Artifacts to GitHub Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: release-assets | |
| pattern: bundle-* | |
| - name: Package release bundles | |
| run: | | |
| mkdir -p dist | |
| for bundle_dir in release-assets/bundle-*; do | |
| asset_name="${bundle_dir#release-assets/bundle-}" | |
| ( | |
| cd "$bundle_dir" | |
| zip -r "../../dist/${asset_name}.zip" bundle | |
| ) | |
| done | |
| - name: Upload artifacts to GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: dist/*.zip | |
| draft: false |