mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2025-01-31 04:52:37 -05:00
chore(build): strip the binary
This commit is contained in:
parent
9136d1ce09
commit
8ed0b7bbf1
2 changed files with 4 additions and 1 deletions
4
.github/workflows/cd.yml
vendored
4
.github/workflows/cd.yml
vendored
|
@ -30,7 +30,9 @@ jobs:
|
|||
target: ${{ matrix.TARGET }}
|
||||
override: true
|
||||
- name: Build
|
||||
run: cargo build --release --locked --target ${{ matrix.TARGET }}
|
||||
run: |
|
||||
cargo build --release --locked --target ${{ matrix.TARGET }}
|
||||
strip target/${{ matrix.TARGET }}/release/rustypaste
|
||||
- name: Prepare release assets
|
||||
run: |
|
||||
mkdir release/
|
||||
|
|
|
@ -9,6 +9,7 @@ COPY . .
|
|||
RUN cargo build --locked --release
|
||||
RUN mkdir -p build-out/
|
||||
RUN cp target/x86_64-unknown-linux-musl/release/rustypaste build-out/
|
||||
RUN strip build-out/rustypaste
|
||||
|
||||
FROM scratch
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Reference in a new issue