mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2025-01-31 13:02:43 -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 }}
|
target: ${{ matrix.TARGET }}
|
||||||
override: true
|
override: true
|
||||||
- name: Build
|
- 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
|
- name: Prepare release assets
|
||||||
run: |
|
run: |
|
||||||
mkdir release/
|
mkdir release/
|
||||||
|
|
|
@ -9,6 +9,7 @@ COPY . .
|
||||||
RUN cargo build --locked --release
|
RUN cargo build --locked --release
|
||||||
RUN mkdir -p build-out/
|
RUN mkdir -p build-out/
|
||||||
RUN cp target/x86_64-unknown-linux-musl/release/rustypaste build-out/
|
RUN cp target/x86_64-unknown-linux-musl/release/rustypaste build-out/
|
||||||
|
RUN strip build-out/rustypaste
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
Loading…
Reference in a new issue