From 6fea0f62f1b536560e20bb9fef687beeaa7f0f0a Mon Sep 17 00:00:00 2001 From: Nick Volynkin Date: Wed, 15 Nov 2023 20:51:09 +0200 Subject: [PATCH] deb: get version from VERSION file --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9c8ccd7..3633cc98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,6 +73,11 @@ jobs: toolset: gcc arch: x86 + - name: Set VERSION variable + # required for building deb packages + # TODO: replace with getting version from git tag or commit SHA1 + run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV + - name: Configure CMake env: BOOST_ROOT: "${{ steps.install-boost.outputs.BOOST_ROOT }}" @@ -104,7 +109,7 @@ jobs: package: proof-generator package_root: .debpkg maintainer: =nil; Foundation - version: 0.1 + version: ${{ env.VERSION }} arch: 'amd64' desc: 'zkllvm proof-generator'