Skip to content

Commit 7f14e61

Browse files
committed
strip output binaries and reduce build logs
1 parent 31c0a76 commit 7f14e61

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 2
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true

.github/workflows/nginx.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
apt-get -qq update -y
5454
apt-get -qq install -y gettext-base build-essential wget libpcre3-dev libssl-dev zlib1g-dev awscli
55-
./nginx-build.sh "$(pwd)/${output_name}"
55+
./nginx-build.sh "$(pwd)/${{ env.output_name }}"
5656
5757
- name: Generate artifact checksum
5858
run: sha256sum ${{ env.output_name }} > ${{ env.output_name }}.sha256

nginx-build.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euxo pipefail
44

55
# #### NGINX Builscript ####
66
#
7-
# Requires wget, gcc, make, libpcre3-dev, libssl-dev and libghc-zlib-dev.
7+
# Requires wget, gcc, strip, make, libpcre3-dev, libssl-dev and libghc-zlib-dev.
88
#
99
# Usage: ./nginx-build.sh ABSOLUTE_OUTPUT_BINARY_PATH
1010
# Example: ./nginx-build.sh /usr/local/sbin/nginx
@@ -29,22 +29,22 @@ OUTPUT_BIN="$1"
2929

3030
# download NGINX source.
3131
wget -O nginx.tar.gz ${NGINX_SRC_URL}
32-
tar zxvf nginx.tar.gz
32+
tar zxf nginx.tar.gz
3333
rm -f nginx.tar.gz
3434

3535
# download NGINX development kit module source.
3636
wget -O ngx_devel_kit.tar.gz ${NGX_DEVEL_KIT_SRC_URL}
37-
tar zxvf ngx_devel_kit.tar.gz
37+
tar zxf ngx_devel_kit.tar.gz
3838
rm -f ngx_devel_kit.tar.gz
3939

4040
# download nginx set misc module source.
4141
wget -O set-misc-nginx-module.tar.gz ${NGX_SET_MISC_MOD_SRC_URL}
42-
tar zxvf set-misc-nginx-module.tar.gz
42+
tar zxf set-misc-nginx-module.tar.gz
4343
rm -f set-misc-nginx-module.tar.gz
4444

4545
# download headers more module source.
4646
wget -O headers-more-nginx-module.tar.gz ${NGX_HEADERS_MORE_MOD_SRC_URL}
47-
tar zxvf headers-more-nginx-module.tar.gz
47+
tar zxf headers-more-nginx-module.tar.gz
4848
rm -f headers-more-nginx-module.tar.gz
4949

5050
cd nginx-${NGINX_VERSION} || exit 1
@@ -68,3 +68,4 @@ cd nginx-${NGINX_VERSION} || exit 1
6868

6969
make -j"$(nproc)"
7070
make install -j"$(nproc)"
71+
strip "${OUTPUT_BIN}"

0 commit comments

Comments
 (0)