chore(release): prepare v1.6.2 (#64) #12
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 Server Binaries | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| jobs: | |
| build-server: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| artifact_name: nyro-server-linux-x86_64 | |
| binary_name: nyro-server | |
| - os: ubuntu-24.04-arm | |
| artifact_name: nyro-server-linux-aarch64 | |
| binary_name: nyro-server | |
| - os: macos-15-intel | |
| artifact_name: nyro-server-macos-x86_64 | |
| binary_name: nyro-server | |
| - os: macos-latest | |
| artifact_name: nyro-server-macos-aarch64 | |
| binary_name: nyro-server | |
| - os: windows-latest | |
| artifact_name: nyro-server-windows-x86_64.exe | |
| binary_name: nyro-server.exe | |
| - os: windows-11-arm | |
| artifact_name: nyro-server-windows-arm64.exe | |
| binary_name: nyro-server.exe | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Install frontend dependencies | |
| run: pnpm -C webui install --frozen-lockfile | |
| - name: Build webui | |
| run: pnpm -C webui build | |
| - name: Build nyro-server | |
| run: cargo build -p nyro-server --release | |
| - name: Package binary (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| mkdir -p dist | |
| cp "target/release/${{ matrix.binary_name }}" "dist/${{ matrix.artifact_name }}" | |
| - name: Package binary (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| New-Item -ItemType Directory -Path dist -Force | Out-Null | |
| Copy-Item "target\release\${{ matrix.binary_name }}" "dist\${{ matrix.artifact_name }}" | |
| - name: Upload server artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact_name }} | |
| path: dist/${{ matrix.artifact_name }} | |
| publish-server: | |
| runs-on: ubuntu-latest | |
| needs: build-server | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download server artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| pattern: nyro-server-* | |
| merge-multiple: true | |
| - name: Generate SHA256SUMS | |
| run: | | |
| cd artifacts | |
| sha256sum * > SHA256SUMS.txt | |
| - name: Upload SHA256SUMS artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nyro-server-sha256sums | |
| path: artifacts/SHA256SUMS.txt | |
| - name: Create or update GitHub Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| allowUpdates: true | |
| name: Nyro ${{ github.ref_name }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| artifacts: artifacts/* | |
| replacesArtifacts: true | |
| makeLatest: legacy |