Setup new p7zip fork (p7zip-zstd) on GitHub Actions to use 7za
.
This action installs the new p7zip fork with additional codecs and improvements for use in actions by installing it on tool cache using AnimMouse/tool-cache.
With the new p7zip fork, you can now use Zstandard (zstd
), Brotli, LZ4, LZ5, Lizard, and Fast LZMA2 on p7zip in GitHub Actions.
This action only works on Ubuntu.
To use 7za
, run this action before 7za
.
steps:
- name: Setup p7zip fork
uses: AnimMouse/setup-p7zip-fork@v2
- run: 7za i
You can specify the version you want. By default, this action downloads the latest version if version is not specified.
steps:
- name: Setup p7zip fork
uses: AnimMouse/setup-p7zip-fork@v2
with:
version: v17.05
- run: 7za i
This action automatically uses a GitHub token in order to authenticate with the GitHub API and avoid rate limiting. You can also specify your own read-only fine-grained personal access token.
steps:
- name: Setup p7zip fork
uses: AnimMouse/setup-p7zip-fork@v2
with:
token: ${{ secrets.GH_PAT }}