chore: Nix: do not install Cachix if not authenticated

This commit is contained in:
Sebastian Ullrich 2021-08-06 16:39:45 +02:00
parent 557af62008
commit bae31853b8

View file

@ -66,7 +66,7 @@ jobs:
echo 'max_size = 50M' > /nix/var/cache/ccache/ccache.conf
# install & use Cachix manually since `cachix-action` pushes *all* derivations (incl. `$mod-deps`, stage 2&3, etc.)
nix-env -iA cachix -f https://cachix.org/api/v1/install
[ -z '${{ secrets.CACHIX_AUTH_TOKEN }}' ] || nix-env -iA cachix -f https://cachix.org/api/v1/install
- name: Setup CCache Cache
uses: actions/cache@v2
with: