setup-scoop
action provides functions below
scoop
to your Windows runnerPATH
environment variablescoop
- uses: MinoruSekine/setup-scoop@v4
with:
buckets: extras
apps: doxygen plantuml
windows-latest
windows-2019
with:
like this
with:
buckets: extras
scoop_checkup: 'true'
install_scoop
true
(default), scoop
will be installedfalse
, scoop
will not be installed
~/scoop/
will be recoveredrun_as_admin
true
(default), scoop
will be installed with option -RunAsAdmin
false
, scoop
will be installed without option -RunAsAdmin
buckets
extras nonportable games
scoop bucket known
commandapps
plantuml doxygen
scoop_update
true
(default), scoop update
will be processed after installationfalse
, it will notscoop_checkup
true
, scoop checkup
will be processed after installationfalse
(default), it will notupdate_path
true
(default), path to scoop
will be added into environment variable PATH
false
, environment variable PATH
will not be updatedactions/cache
install_scoop
will be false
to skip installation and only update_path
will be true
packages_to_install
into cache seed to validate cache is including enough apps or notIncrement cache_version
if cache should be expired without changing packages_to_install
env:
packages_to_install: shellcheck
cache_version: v0
cache_hash_seed_file_path: './.github/workflows/cache_seed_file_for_scoop.txt'
(snipped)
jobs:
build:
steps:
- name: Create cache seed file
run: echo ${{ env.packages_to_install }} >> ${{ env.cache_hash_seed_file_path }}
- name: Restore cache if available
id: restore_cache
uses: actions/cache@v4
with:
path: ${{ matrix.to_cache_dir }}
key: cache_version_${{ env.cache_version }}-${{ hashFiles(env.cache_hash_seed_file_path) }}
- name: Install scoop (Windows)
uses: MinoruSekine/setup-scoop@v4
if: steps.restore_cache.outputs.cache-hit != 'true'
with:
install_scoop: 'true'
buckets: extras
apps: ${{ env.packages_to_install }}
scoop_update: 'true'
update_path: 'true'
- name: Setup scoop PATH (Windows)
uses: MinoruSekine/setup-scoop@v4
if: steps.restore_cache.outputs.cache-hit == 'true'
with:
install_scoop: 'false'
scoop_update: 'false'
update_path: 'true'