Browse Source

Strip ffsend binaries on CI from debug symbols

timvisee 6 years ago
parent
commit
c47c36c692
1 changed files with 10 additions and 1 deletions
  1. 10 1
      .gitlab-ci.yml

+ 10 - 1
.gitlab-ci.yml

@@ -1,3 +1,10 @@
+# GitLab CI configuration for ffsend builds, tests and releases
+#
+# To add a new release:
+# - configure a new 'build-*' job with the proper target
+# - export a build artifact from the new job
+# - manually upload artifact to GitHub in the 'github-release' job
+
 image: "rust:slim"
 image: "rust:slim"
 
 
 stages:
 stages:
@@ -63,6 +70,7 @@ build-x86_64-linux-gnu:
   script:
   script:
     - cargo build --target=$RUST_TARGET --release --verbose
     - cargo build --target=$RUST_TARGET --release --verbose
     - mv target/$RUST_TARGET/release/ffsend ./ffsend-$RUST_TARGET
     - mv target/$RUST_TARGET/release/ffsend ./ffsend-$RUST_TARGET
+    - strip -g ./ffsend-$RUST_TARGET
   artifacts:
   artifacts:
     name: ffsend-x86_64-linux-gnu
     name: ffsend-x86_64-linux-gnu
     paths:
     paths:
@@ -94,9 +102,10 @@ build-x86_64-linux-musl:
     - export OPENSSL_INCLUDE_DIR=/usr/local/include
     - export OPENSSL_INCLUDE_DIR=/usr/local/include
     - cargo build --target=$RUST_TARGET --release --verbose
     - cargo build --target=$RUST_TARGET --release --verbose
 
 
-    # Prepare the release artifact
+    # Prepare the release artifact, strip it
     - find . -name ffsend -exec ls -lah {} \;
     - find . -name ffsend -exec ls -lah {} \;
     - mv target/$RUST_TARGET/release/ffsend ./ffsend-$RUST_TARGET
     - mv target/$RUST_TARGET/release/ffsend ./ffsend-$RUST_TARGET
+    - strip -g ./ffsend-$RUST_TARGET
   artifacts:
   artifacts:
     name: ffsend-x86_64-linux-musl
     name: ffsend-x86_64-linux-musl
     paths:
     paths: