Skip to content

Commit 9ac6e72

Browse files
committed
Remove v from version
1 parent 8e3d0f4 commit 9ac6e72

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ jobs:
2323
with:
2424
submodules: recursive
2525

26-
- name: Extract crate information
27-
shell: bash
28-
run: |
29-
# Get the project version from mix.exs
30-
echo "PROJECT_VERSION=$(sed -n 's/^ @version "\(.*\)"/\1/p' mix.exs | head -n1)" >> $GITHUB_ENV
31-
3226
- name: Install Rust toolchain
3327
uses: dtolnay/rust-toolchain@stable
3428
with:
@@ -41,7 +35,7 @@ jobs:
4135
nif-version: ${{ matrix.nif }}
4236
project-dir: "native/baml_elixir"
4337
project-name: baml_elixir
44-
project-version: ${{ env.PROJECT_VERSION }}
38+
project-version: ${{ github.ref_name }}
4539
target: ${{ matrix.job.target }}
4640
use-cross: ${{ matrix.job.use-cross }}
4741

lib/baml_elixir/native.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule BamlElixir.Native do
33

44
use RustlerPrecompiled,
55
otp_app: :baml_elixir,
6-
base_url: "https://github.com/emilsoman/baml-elixir/releases/download/v#{version}/",
6+
base_url: "https://github.com/emilsoman/baml-elixir/releases/download/#{version}/",
77
force_build: System.get_env("BAML_ELIXIR_BUILD") in ["1", "true"],
88
version: version
99

0 commit comments

Comments
 (0)