Download, install, and set up wpm in GitHub Actions.
- uses: trywpm/setup-wpm@v1By default, if no version is specified, the action installs the latest version of wpm.
You can also explicitly specify a version:
- uses: trywpm/setup-wpm@v1
with:
wpm-version: v0.1.6While wpm installs are fast, you should consider caching the directory to speed up builds, reduce load on the registry, and avoid re-downloading unchanged packages.
You can achieve this by using the actions/cache action:
- uses: actions/cache@v4
with:
path: ~/.wpm/cache
key: ${{ runner.os }}-wpm-${{ hashFiles('**/wpm.lock') }}
restore-keys: |
${{ runner.os }}-wpm-
- uses: trywpm/setup-wpm@v1