Skip to content

Commit

Permalink
add upx
Browse files Browse the repository at this point in the history
  • Loading branch information
Cole Kennedy committed May 27, 2023
1 parent 969e9ad commit 1fef134
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

name: release
on: [push, pull_request]
jobs:
Expand Down Expand Up @@ -81,6 +82,16 @@ jobs:
- name: Download GoReleaser
run: go install github.com/goreleaser/goreleaser@latest



- name: Install UPX
uses: crazy-max/ghaction-upx@v2
with:
install-only: true
- name: UPX version
run: upx --version


- name: Run GoReleaser
uses: testifysec/witness-run-action@v0.1.2
env:
Expand Down Expand Up @@ -114,7 +125,7 @@ jobs:
enable-archivista: true
attestations: "github git"
trace: false
step: build
step: package
command: >
docker buildx build
--build-arg BINARY_PATH=./dist/witness_linux_amd64_v1/witness
Expand Down
14 changes: 14 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ release:
prerelease: auto
github:
owner: "{{ .Env.GITHUB_REPOSITORY_OWNER }}"
upx:
-
# Whether to enable it or not.
enabled: true

# Compress argument.
# Valid options are from '1' (faster) to '9' (better), and 'best'.
compress: best

# Whether to try LZMA (slower).
lzma: true

# Whether to try all methods and filters (slow).
brute: true

0 comments on commit 1fef134

Please sign in to comment.