{"id":15650888,"url":"https://github.com/svenstaro/upx-action","last_synced_at":"2026-03-16T22:06:16.376Z","repository":{"id":40796061,"uuid":"205552076","full_name":"svenstaro/upx-action","owner":"svenstaro","description":"Strips and runs upx on binaries","archived":false,"fork":false,"pushed_at":"2024-02-21T13:17:00.000Z","size":54825,"stargazers_count":37,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T23:16:29.719Z","etag":null,"topics":["action","actions","executables","github-actions","upx"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svenstaro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"svenstaro"}},"created_at":"2019-08-31T14:04:19.000Z","updated_at":"2025-01-12T10:09:14.000Z","dependencies_parsed_at":"2024-06-18T22:50:04.431Z","dependency_job_id":"488e265d-5be8-4b24-a18c-543ffcb32fc6","html_url":"https://github.com/svenstaro/upx-action","commit_stats":{"total_commits":90,"total_committers":6,"mean_commits":15.0,"dds":0.3666666666666667,"last_synced_commit":"45c3bd8cb5344109ea2b0b7cd9402bcc70c27afb"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/svenstaro/upx-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenstaro%2Fupx-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenstaro%2Fupx-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenstaro%2Fupx-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenstaro%2Fupx-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svenstaro","download_url":"https://codeload.github.com/svenstaro/upx-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenstaro%2Fupx-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260576533,"owners_count":23030591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","actions","executables","github-actions","upx"],"created_at":"2024-10-03T12:36:11.389Z","updated_at":"2026-03-16T22:06:16.347Z","avatar_url":"https://github.com/svenstaro.png","language":"JavaScript","funding_links":["https://github.com/sponsors/svenstaro"],"categories":[],"sub_categories":[],"readme":"# Strip and run UPX on executables [![GitHub Actions Workflow](https://github.com/svenstaro/upx-action/actions/workflows/ci.yml/badge.svg)](https://github.com/svenstaro/upx-action/actions/workflows/ci.yml)\n\nThis action allows you to select an executable file which is then stripped and run through [upx](https://upx.github.io/) which drastically decreases the size of those executables.\nIt runs on all operating systems types offered by GitHub.\n\n## Input variables\n\n* `files`: Newline-delimited list of path globs for files to compress. It's compressed in-place. If on Windows, provide Unix style paths (`c:/something`). *either files or file required*\n* `file`: The file you want to compress. It's compressed in-place. *Deprecated, prefer `files`*.\n* `args`: Arguments to pass to UPX. *optional*\n* `strip`: Whether or not \"strip\" symbols from object file (default `true`). *optional*\n* `strip_args`: Arguments to pass to strip. *optional*\n\n## Usage\n\nThis Action is meant to be ran on just-compiled executables in the same CI job.\n\nSimple example:\n\n```yaml\nname: Publish\n\non:\n  push:\n    tags:\n      - '*'\n\njobs:\n  build:\n    name: Publish binaries\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v3\n    - name: Build\n      run: cargo build --release --locked\n    - name: Compress binaries\n      uses: svenstaro/upx-action@v2\n      with:\n        files: |\n          target/release/mything\n          target/release/*\n```\n\nComplex example with more operating systems and inputs:\n\n```yaml\nname: Publish\n\non:\n  push:\n    tags:\n      - '*'\n\njobs:\n  build:\n    name: Publish binaries for ${{ matrix.os }}\n    runs-on: ${{ matrix.os }}\n    strategy:\n      matrix:\n        include:\n          - os: ubuntu-latest\n            files: |\n                target/release/mything\n            args: --best --lzma\n            strip: true\n          - os: windows-latest\n            files: |\n                target/release/mything.exe\n            args: -9\n            strip: false\n          - os: macos-latest\n            files: |\n                target/release/mything\n            args: --best\n            strip: true\n    steps:\n    - uses: actions/checkout@v3\n    - name: Build\n      run: cargo build --release --locked\n    - name: Compress binaries\n      uses: svenstaro/upx-action@v2\n      with:\n        files: |\n            ${{ matrix.file }}\n        args: ${{ matrix.args }}\n        strip: ${{ matrix.strip }}\n```\n\n## Releasing and publishing\n\nTo release this Action:\n\n- Bump version in `package.json`\n- Create `CHANGELOG.md` entry\n- `npm update`\n- `npm run all`\n- `git commit -am \u003cversion\u003e`\n- `git tag -sm \u003cversion\u003e \u003cversion\u003e`\n- `git push --follow-tags`\n- Go to https://github.com/svenstaro/upx-action/releases and publish the new version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenstaro%2Fupx-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvenstaro%2Fupx-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenstaro%2Fupx-action/lists"}