Skip to content

Commit 1e06895

Browse files
authored
fix: version (#289)
1 parent 33d68f0 commit 1e06895

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

+8
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,16 @@ jobs:
5757
env:
5858
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
5959

60+
- name: Set version name
61+
run: echo "version=(git cliff --bumped-version)" >> $GITHUB_ENV
62+
6063
- name: 🛠️ Run Build
6164
run: cargo build -p pgt_cli --release --target ${{ matrix.config.target }}
65+
# Strip all debug symbols from the resulting binaries
66+
RUSTFLAGS: "-C strip=symbols -C codegen-units=1"
67+
# Inline the version in the CLI binary
68+
PGT_VERSION: ${{ env.version }}
69+
6270

6371
# windows is a special snowflake too, it saves binaries as .exe
6472
- name: 👦 Name the Binary

0 commit comments

Comments
 (0)