Skip to content

AnimMouse/setup-p7zip-fork

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup new p7zip fork for GitHub Actions

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.

Usage

To use 7za, run this action before 7za.

steps:
  - name: Setup p7zip fork
    uses: AnimMouse/setup-p7zip-fork@v2
    
  - run: 7za i

Specific version

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

GitHub token

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 }}