Release rippletide-code v0.5.29 with stable rule list redraw #64
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 Coding Agent | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: read | |
| env: | |
| WORKING_DIR: context-graph | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - target: aarch64-apple-darwin | |
| os: macos-latest | |
| npm-pkg: rippletide-code-darwin-arm64 | |
| - target: x86_64-apple-darwin | |
| os: macos-latest | |
| npm-pkg: rippletide-code-darwin-x64 | |
| - target: x86_64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| npm-pkg: rippletide-code-linux-x64 | |
| - target: x86_64-pc-windows-msvc | |
| os: windows-latest | |
| npm-pkg: rippletide-code-win32-x64 | |
| - target: aarch64-pc-windows-msvc | |
| os: windows-latest | |
| npm-pkg: rippletide-code-win32-arm64 | |
| - target: aarch64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| npm-pkg: rippletide-code-linux-arm64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install cross-compilation tools (Linux ARM64) | |
| if: matrix.target == 'aarch64-unknown-linux-gnu' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc-aarch64-linux-gnu | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Build | |
| working-directory: ${{ env.WORKING_DIR }} | |
| run: cargo build --release --target ${{ matrix.target }} | |
| env: | |
| CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: ${{ matrix.target == 'aarch64-unknown-linux-gnu' && 'aarch64-linux-gnu-gcc' || '' }} | |
| - name: Copy binary to npm package (Unix) | |
| if: runner.os != 'Windows' | |
| working-directory: ${{ env.WORKING_DIR }} | |
| run: | | |
| cp target/${{ matrix.target }}/release/rippletide-cli npm/${{ matrix.npm-pkg }}/rippletide-code | |
| - name: Copy binary to npm package (Windows) | |
| if: runner.os == 'Windows' | |
| working-directory: ${{ env.WORKING_DIR }} | |
| run: | | |
| copy target\${{ matrix.target }}\release\rippletide-cli.exe npm\${{ matrix.npm-pkg }}\rippletide-code.exe | |
| shell: cmd | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.npm-pkg }} | |
| path: ${{ env.WORKING_DIR }}/npm/${{ matrix.npm-pkg }}/ | |
| publish: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts/ | |
| - name: Copy artifacts into npm packages | |
| working-directory: ${{ env.WORKING_DIR }} | |
| run: | | |
| for pkg in rippletide-code-darwin-arm64 rippletide-code-darwin-x64 rippletide-code-linux-x64 rippletide-code-linux-arm64; do | |
| cp -r $GITHUB_WORKSPACE/artifacts/$pkg/* npm/$pkg/ | |
| chmod +x npm/$pkg/rippletide-code | |
| done | |
| cp -r $GITHUB_WORKSPACE/artifacts/rippletide-code-win32-x64/* npm/rippletide-code-win32-x64/ | |
| cp -r $GITHUB_WORKSPACE/artifacts/rippletide-code-win32-arm64/* npm/rippletide-code-win32-arm64/ | |
| - name: Publish platform packages | |
| working-directory: ${{ env.WORKING_DIR }} | |
| run: | | |
| for pkg in rippletide-code-darwin-arm64 rippletide-code-darwin-x64 rippletide-code-linux-x64 rippletide-code-linux-arm64 rippletide-code-win32-x64 rippletide-code-win32-arm64; do | |
| npm publish npm/$pkg/ --access public | |
| done | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Publish main package | |
| working-directory: ${{ env.WORKING_DIR }} | |
| run: npm publish npm/rippletide-code/ --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |