Skip to content

Bump version to 0.2.8 #13

Bump version to 0.2.8

Bump version to 0.2.8 #13

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- target: aarch64-apple-darwin
os: macos-latest
cross: false
- target: x86_64-apple-darwin
os: macos-latest
cross: true
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
cross: false
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
cross: true
- target: x86_64-pc-windows-msvc
os: windows-latest
cross: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install cross-compilation tools (aarch64 Linux)
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
- name: Build weave-mcp
run: cargo build --release --target ${{ matrix.target }} --bin weave-mcp ${{ matrix.cross && '--features vendored-openssl' || '' }}
- name: Build weave-cli
run: cargo build --release --target ${{ matrix.target }} --bin weave ${{ matrix.cross && '--features vendored-openssl' || '' }}
- name: Build weave-driver
run: cargo build --release --target ${{ matrix.target }} --bin weave-driver ${{ matrix.cross && '--features vendored-openssl' || '' }}
- name: Package binaries (Unix)
if: runner.os != 'Windows'
run: |
mkdir -p dist
cd target/${{ matrix.target }}/release
tar czf ../../../dist/weave-mcp-${{ matrix.target }}.tar.gz weave-mcp
tar czf ../../../dist/weave-cli-${{ matrix.target }}.tar.gz weave
tar czf ../../../dist/weave-driver-${{ matrix.target }}.tar.gz weave-driver
- name: Package binaries (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path dist
Compress-Archive -Path target/${{ matrix.target }}/release/weave-mcp.exe -DestinationPath dist/weave-mcp-${{ matrix.target }}.zip
Compress-Archive -Path target/${{ matrix.target }}/release/weave.exe -DestinationPath dist/weave-cli-${{ matrix.target }}.zip
Compress-Archive -Path target/${{ matrix.target }}/release/weave-driver.exe -DestinationPath dist/weave-driver-${{ matrix.target }}.zip
- name: Upload artifacts
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: binaries-${{ matrix.target }}
path: dist/
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: dist
merge-multiple: true
- name: Create release
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
with:
files: dist/*
generate_release_notes: true