From 2e0564a3b632806afd403c1389f146e06d31489b Mon Sep 17 00:00:00 2001 From: psteinroe Date: Tue, 1 Apr 2025 11:47:38 +0200 Subject: [PATCH] fix: version --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f11d4318..87dfc356 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,8 +57,16 @@ jobs: env: DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres + - name: Set version name + run: echo "version=(git cliff --bumped-version)" >> $GITHUB_ENV + - name: 🛠️ Run Build run: cargo build -p pgt_cli --release --target ${{ matrix.config.target }} + # Strip all debug symbols from the resulting binaries + RUSTFLAGS: "-C strip=symbols -C codegen-units=1" + # Inline the version in the CLI binary + PGT_VERSION: ${{ env.version }} + # windows is a special snowflake too, it saves binaries as .exe - name: 👦 Name the Binary