Skip to content

Commit 09fbcc9

Browse files
switch to compile bin
1 parent 5d7efb3 commit 09fbcc9

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ 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 mini_binary --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/mini_binary.exe ./dist/pgcli_${{ 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/mini_binary ./dist/pgcli_${{ 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.
@@ -117,6 +117,7 @@ jobs:
117117

118118
- name: 📂 Create Release
119119
uses: softprops/action-gh-release@v1
120+
id: create-release
120121
env:
121122
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122123
with:
@@ -125,3 +126,13 @@ jobs:
125126
tag_name: ${{ steps.create_changelog.outputs.version }}
126127
files: pgcli_*
127128
fail_on_unmatched_files: true
129+
draft: true
130+
131+
- name: ✅ Output Link to Worflow Summary
132+
run: |
133+
echo "# 🚀 Release completed!" >> $GITHUB_STEP_SUMMARY
134+
echo "" >> $GITHUB_STEP_SUMMARY
135+
echo "Here is the URL to the Release Draft:" >> $GITHUB_STEP_SUMMARY
136+
echo "" >> $GITHUB_STEP_SUMMARY
137+
echo "[Link](${{ steps.create-release.outputs.url }})"" >> $GITHUB_STEP_SUMMARY
138+
echo "" >> $GITHUB_STEP_SUMMARY

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/mini_binary/Cargo.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
authors.workspace = true
3+
categories.workspace = true
4+
description = "<DESCRIPTION>"
5+
edition.workspace = true
6+
homepage.workspace = true
7+
keywords.workspace = true
8+
license.workspace = true
9+
name = "mini_binary"
10+
repository.workspace = true
11+
version = "0.0.0"
12+
13+
[[bin]]
14+
name = "mini_binary"
15+
path = "src/main.rs"
16+

crates/mini_binary/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)