⚠️ This action was deprecated, use crazy-max/ghaction-upx instead ⚠️
This is a GitHub Action to run UPX on an executable file(s).
Action idea looked in joshuarli/strip-upx-action
Pack single file:
steps:
- name: compile test file
run: |
printf %s 'package main;import "fmt";func main(){fmt.Println("hi")}' > main.go
go build -o hi main.go
- uses: gacts/upx@master
with:
file: 'hi'
upx_args: '-9'
# Or use ready docker image:
- uses: docker://gacts/upx:latest
with:
file: 'hi'
upx_args: '-9'
or a directory with executable files:
steps:
- name: compile test file
run: |
printf %s 'package main;import "fmt";func main(){fmt.Println("hi")}' > main.go
go build -o hi main.go
- uses: gacts/upx@master
with:
dir: '.'
upx_args: '-9'
# Or use ready docker image:
- uses: docker://gacts/upx:latest
with:
dir: '.'
upx_args: '-9'
If you will find any package errors, please, make an issue in current repository.
This is open-sourced software licensed under the WTFPL License.