fix rsync output parsing #20
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 Binaries | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| build-linux-musl: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout commit | |
| uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| with: | |
| version: 11 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| cache-dependency-path: crates/seedmirror-client/src/frontend/pnpm-lock.yaml | |
| - name: Build frontend static assets | |
| run: | | |
| pnpm install --frozen-lockfile | |
| pnpm run build | |
| working-directory: crates/seedmirror-client/src/frontend | |
| - name: Install musl toolchain | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y musl-tools | |
| - name: Install toolchain and setup caching | |
| uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1 | |
| with: | |
| cache: true | |
| target: x86_64-unknown-linux-musl | |
| - name: Set Binary Tag/Ref Name | |
| id: vars | |
| run: | | |
| if [[ "${{ github.ref }}" == refs/tags/* ]]; then | |
| echo "NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
| else | |
| echo "NAME=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Build binary | |
| run: | | |
| cargo check | |
| cargo build --release --target x86_64-unknown-linux-musl | |
| mv target/x86_64-unknown-linux-musl/release/seedmirror-client \ | |
| seedmirror-client-${{ steps.vars.outputs.NAME }}-x86_64-linux-musl | |
| mv target/x86_64-unknown-linux-musl/release/seedmirror-server \ | |
| seedmirror-server-${{ steps.vars.outputs.NAME }}-x86_64-linux-musl | |
| # Only when manually triggered | |
| - name: Upload PR Artifacts | |
| if: startsWith(github.ref, 'refs/tags/') == false | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: seedmirror-binaries-${{ steps.vars.outputs.NAME }} | |
| path: | | |
| seedmirror-client-${{ steps.vars.outputs.NAME }}-x86_64-linux-musl | |
| seedmirror-server-${{ steps.vars.outputs.NAME }}-x86_64-linux-musl | |
| # Only when creating a tag | |
| - name: Add files to release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2 | |
| with: | |
| files: | | |
| seedmirror-client-${{ steps.vars.outputs.NAME }}-x86_64-linux-musl | |
| seedmirror-server-${{ steps.vars.outputs.NAME }}-x86_64-linux-musl |