ci: strip linux binaries for nightly release builds (#15063)

This commit is contained in:
Alexey Kuzmin 2018-10-11 04:41:48 +02:00 committed by Samuel Attard
parent a9475f3590
commit a9646e3414

View file

@ -24,6 +24,7 @@ env-testing-build: &env-testing-build
env-release-build: &env-release-build env-release-build: &env-release-build
GN_CONFIG: //electron/build/args/release.gn GN_CONFIG: //electron/build/args/release.gn
STRIP_BINARIES: true
env-headless-testing: &env-headless-testing env-headless-testing: &env-headless-testing
DISPLAY: ':99.0' DISPLAY: ':99.0'
@ -160,12 +161,14 @@ step-electron-build: &step-electron-build
cd src cd src
ninja -C out/Default electron -j18 ninja -C out/Default electron -j18
step-electron-dist-strip: &step-electron-dist-strip step-maybe-electron-dist-strip: &step-maybe-electron-dist-strip
run: run:
name: Strip electron binaries name: Strip electron binaries
command: | command: |
if [ "$STRIP_BINARIES" == "true" ]; then
cd src cd src
electron/script/strip-binaries.py --target-cpu="$TARGET_ARCH" electron/script/strip-binaries.py --target-cpu="$TARGET_ARCH"
fi
step-electron-dist-build: &step-electron-dist-build step-electron-dist-build: &step-electron-dist-build
run: run:
@ -440,6 +443,7 @@ steps-electron-build-for-tests: &steps-electron-build-for-tests
# Electron app # Electron app
- *step-electron-build - *step-electron-build
- *step-maybe-electron-dist-strip
- *step-electron-dist-build - *step-electron-dist-build
- *step-electron-dist-store - *step-electron-dist-store
@ -472,7 +476,7 @@ steps-electron-build-for-publish: &steps-electron-build-for-publish
# Electron app # Electron app
- *step-electron-build - *step-electron-build
- *step-electron-dist-strip - *step-maybe-electron-dist-strip
- *step-electron-dist-build - *step-electron-dist-build
- *step-electron-dist-store - *step-electron-dist-store
- *step-generate-breakpad-symbols - *step-generate-breakpad-symbols