Skip to content

Commit

Permalink
Remove minified binary from pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kuskoman committed Feb 12, 2023
1 parent 57fd03d commit ee72607
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions .github/workflows/go-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,6 @@ jobs:
name: logstash-exporter-linux
path: out/main-linux

build-linux-minified:
name: Minify Linux binary
runs-on: ubuntu-20.04
needs: [build-linux]
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Install upx
run: sudo apt-get install -y upx

- name: Download Linux binary
uses: actions/download-artifact@v1
with:
name: logstash-exporter-linux
path: out

- name: Minify Linux binary
run: upx out/main-linux

- name: Move minified binary
run: mv out/main-linux out/main-linux-minified

- name: Upload minified Linux binary
uses: actions/upload-artifact@v1
with:
name: logstash-exporter-linux
path: out/main-linux-minified

build-darwin:
name: Build Mac binary
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -187,14 +160,13 @@ jobs:
upload-binaries:
strategy:
matrix:
binary: [linux, darwin, windows, linux-minified]
binary: [linux, darwin, windows]
runs-on: ubuntu-20.04
needs:
- create-release
- build-linux
- build-darwin
- build-windows
- build-linux-minified
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download binary
Expand Down

0 comments on commit ee72607

Please sign in to comment.