v6.8.13 preview #1
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 Proxy Binary | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: Build ${{ matrix.asset_name }} | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| include: | |
| - target: aarch64-apple-darwin | |
| runner: macos-14 | |
| asset_name: java-lsp-proxy-darwin-aarch64.tar.gz | |
| - target: x86_64-apple-darwin | |
| runner: macos-15-intel | |
| asset_name: java-lsp-proxy-darwin-x86_64.tar.gz | |
| - target: x86_64-unknown-linux-gnu | |
| runner: ubuntu-latest | |
| asset_name: java-lsp-proxy-linux-x86_64.tar.gz | |
| - target: aarch64-unknown-linux-gnu | |
| runner: ubuntu-24.04-arm | |
| asset_name: java-lsp-proxy-linux-aarch64.tar.gz | |
| - target: x86_64-pc-windows-msvc | |
| runner: windows-latest | |
| asset_name: java-lsp-proxy-windows-x86_64.zip | |
| - target: aarch64-pc-windows-msvc | |
| runner: windows-11-arm | |
| asset_name: java-lsp-proxy-windows-aarch64.zip | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Build proxy binary | |
| working-directory: proxy | |
| run: cargo build --release --target ${{ matrix.target }} | |
| shell: bash | |
| - name: Package binary (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| tar -czf ${{ matrix.asset_name }} \ | |
| -C target/${{ matrix.target }}/release \ | |
| java-lsp-proxy | |
| - name: Package binary (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| Compress-Archive -Path target/${{ matrix.target }}/release/java-lsp-proxy.exe -DestinationPath ${{ matrix.asset_name }} | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.asset_name }} | |
| path: ${{ matrix.asset_name }} | |
| retention-days: 1 | |
| release: | |
| name: Create Release | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| merge-multiple: true | |
| - name: Upload release assets | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: artifacts/* |