Skip to content

Commit

Permalink
Use nightly rust, strip symbols, and run cargo update
Browse files Browse the repository at this point in the history
Stripping symbols from the release binary drastically reduces the file
size on linux
  • Loading branch information
cubetastic33 committed Sep 21, 2021
1 parent 7f3b44d commit ef6522c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 29 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: build
Expand Down
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
cargo-features = ["strip"]

[package]
name = "cheesecake"
version = "0.1.0"
authors = ["aravk <[email protected]>"]
edition = "2018"

[profile.release]
strip = true

[dependencies]
discord-markdown = "0.1.2"
dotenv = "0.15"
Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly

0 comments on commit ef6522c

Please sign in to comment.