diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 11cc4b3..47c1974 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -23,11 +23,12 @@ jobs: steps: - uses: actions/checkout@v4 - run: rustup target add ${{ matrix.job.target }} + - run: echo "PROJECT_VERSION=$(sed -n 's/^ @version "\(.*\)"/\1/p' mix.exs | head -n1)" >> $GITHUB_ENV - uses: philss/rustler-precompiled-action@v1.1.1 with: project-dir: "native/candlex" project-name: candlex - project-version: "0.1.1" + project-version: ${{ PROJECT_VERSION }} target: ${{ matrix.job.target }} nif-version: ${{ matrix.nif_version }} # use-cross: false doesn't work