feat: switch from deprecated mistralrs-server to mistralrs CLI

Build the mistralrs binary (CLI) instead of the deprecated
mistralrs-server. The RPM still installs as /usr/bin/mistralrs-server
for backwards compatibility. The systemd unit now invokes
`mistralrs-server serve` to use the CLI's serve subcommand.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 18:50:52 +03:00
parent b6977eda02
commit 3e4191a7d9
3 changed files with 10 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ jobs:
git clone --depth 1 --branch "${{ inputs.tag }}" \
https://github.com/EricLBuehler/mistral.rs.git src/
- name: Build mistralrs-server
- name: Build mistralrs
run: |
export PATH="${{ matrix.cuda_home }}/bin:${PATH}"
export LD_LIBRARY_PATH="${{ matrix.cuda_home }}/targets/x86_64-linux/lib:${{ matrix.cuda_home }}/lib64:${LD_LIBRARY_PATH:-}"
@@ -59,14 +59,14 @@ jobs:
- name: Collect artifacts
run: |
mkdir --parents artifacts
cp src/target/release/mistralrs-server "artifacts/mistralrs-server-${{ matrix.name }}"
echo "built: $(artifacts/mistralrs-server-${{ matrix.name }} --version 2>&1 | head -1)"
cp src/target/release/mistralrs "artifacts/mistralrs-${{ matrix.name }}"
echo "built: $(artifacts/mistralrs-${{ matrix.name }} --version 2>&1 | head -1)"
- name: Upload binary artifact
uses: actions/upload-artifact@v3
with:
name: mistralrs-server-${{ matrix.name }}-fc${{ matrix.fedora_version }}
path: artifacts/mistralrs-server-${{ matrix.name }}
name: mistralrs-${{ matrix.name }}-fc${{ matrix.fedora_version }}
path: artifacts/mistralrs-${{ matrix.name }}
retention-days: 1
package:
@@ -84,7 +84,7 @@ jobs:
- name: Download binary
uses: actions/download-artifact@v3
with:
name: mistralrs-server-${{ matrix.name }}-fc${{ matrix.fedora_version }}
name: mistralrs-${{ matrix.name }}-fc${{ matrix.fedora_version }}
path: artifacts/
- name: Determine version
@@ -105,7 +105,7 @@ jobs:
run: |
rm -f ~/.rpmmacros
rpmdev-setuptree
cp artifacts/mistralrs-server-${{ matrix.name }} ~/rpmbuild/SOURCES/
cp artifacts/mistralrs-${{ matrix.name }} ~/rpmbuild/SOURCES/
cp rpm/systemd/mistralrs@.service ~/rpmbuild/SOURCES/
cp rpm/systemd/mistralrs@.conf.example ~/rpmbuild/SOURCES/
rpmbuild -bb rpm/mistralrs.spec \