From e83289216c93f778c721833e73210d3c1a1f8bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Louf?= Date: Fri, 6 Dec 2024 14:56:44 +0100 Subject: [PATCH] Fix Rust build --- .github/workflows/release_rust.yaml | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_rust.yaml b/.github/workflows/release_rust.yaml index 1cc3b162..5f7b0e28 100644 --- a/.github/workflows/release_rust.yaml +++ b/.github/workflows/release_rust.yaml @@ -31,8 +31,8 @@ jobs: - name: Check Cargo.toml version matches Release tag run: | CARGO_VERSION=$(grep '^version =' Cargo.toml | sed 's/.*"\(.*\)".*/\1/') - if [ "${GITHUB_REF#refs/tags/v}" != "$CARGO_VERSION" ]; then - echo "Version mismatch: Cargo.toml ($CARGO_VERSION) doesn't match Release tag (${GITHUB_REF#refs/tags/v})" + if [ "${GITHUB_REF#refs/tags/}" != "$CARGO_VERSION" ]; then + echo "Version mismatch: Cargo.toml ($CARGO_VERSION) doesn't match Release tag (${GITHUB_REF#refs/tags/})" exit 1 fi diff --git a/Cargo.toml b/Cargo.toml index e93be5e4..39d25183 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outlines-core" -version = "0.1.19" +version = "0.1.20" edition = "2021" description = "Structured Generation" license = "Apache-2.0"