Skip to content

Commit 0a6a0b2

Browse files
authored
chore(pglt_cli): rename binary to pglt (#200)
* chore: rename cli to pglt * fix: review
1 parent d6a5c21 commit 0a6a0b2

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/release.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release PG_CLI
1+
name: Release Binary
22

33
on:
44
workflow_dispatch:
@@ -61,28 +61,28 @@ jobs:
6161
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
6262

6363
- name: 🛠️ Run Build
64-
run: cargo build -p pg_cli --release --target ${{ matrix.config.target }}
64+
run: cargo build -p pglt_cli --release --target ${{ matrix.config.target }}
6565

6666
# windows is a special snowflake to, it saves binaries as .exe
6767
- name: 👦 Name the Binary
6868
if: matrix.config.os == 'windows-latest'
6969
run: |
7070
mkdir dist
71-
cp target/${{ matrix.config.target }}/release/pg_cli.exe ./dist/pgcli_${{ matrix.config.target }}
71+
cp target/${{ matrix.config.target }}/release/pglt.exe ./dist/pglt_${{ matrix.config.target }}
7272
- name: 👦 Name the Binary
7373
if: matrix.config.os != 'windows-latest'
7474
run: |
7575
mkdir dist
76-
cp target/${{ matrix.config.target }}/release/pg_cli ./dist/pgcli_${{ matrix.config.target }}
76+
cp target/${{ matrix.config.target }}/release/pglt ./dist/pglt_${{ matrix.config.target }}
7777
7878
# It is not possible to return the artifacts from the matrix jobs individually: Matrix outputs overwrite each other.
7979
# A common workaround is to upload and download the resulting artifacts.
8080
- name: 👆 Upload Artifacts
8181
id: upload-artifacts
8282
uses: actions/upload-artifact@v4
8383
with:
84-
name: pgcli_${{ matrix.config.target }}
85-
path: ./dist/pgcli_*
84+
name: pglt_${{ matrix.config.target }}
85+
path: ./dist/pglt_*
8686
# The default compression level is 6; this took the binary down from 350 to 330MB.
8787
# It is recommended to use a lower level for binaries, since the compressed result is not much smaller,
8888
# and the higher levels of compression take much longer.
@@ -113,7 +113,7 @@ jobs:
113113
id: download
114114
with:
115115
merge-multiple: true
116-
pattern: pgcli_*
116+
pattern: pglt_*
117117

118118
- name: 📂 Create Release
119119
uses: softprops/action-gh-release@v2
@@ -124,7 +124,7 @@ jobs:
124124
token: ${{ secrets.GITHUB_TOKEN }}
125125
body: ${{ steps.create_changelog.outputs.content }}
126126
tag_name: ${{ steps.create_changelog.outputs.version }}
127-
files: pgcli_*
127+
files: pglt_*
128128
fail_on_unmatched_files: true
129129
draft: true
130130

crates/pglt_cli/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ tikv-jemallocator = "0.6.0"
5656
doctest = false
5757

5858
[features]
59+
60+
[[bin]]
61+
name = "pglt"
62+
path = "src/main.rs"

0 commit comments

Comments
 (0)