Merge pull request #60 from cachix/test-binary-dist

speed up cachix installation a bit
This commit is contained in:
Domen Kožar 2020-09-23 17:15:30 +02:00 committed by GitHub
commit 67df45d399
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -74,5 +74,5 @@ jobs:
with:
name: cachix-action
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
installCommand: 'nix-env -f https://cachix.org/api/v1/install -iA cachix'
installCommand: 'nix-env -j8 -f https://cachix.org/api/v1/install -iA cachix'
- run: nix-build test.nix

2
dist/main/index.js vendored
View file

@ -983,7 +983,7 @@ const authToken = core.getInput('authToken');
const skipPush = core.getInput('skipPush');
const cachixExecutable = '/nix/var/nix/profiles/per-user/runner/profile/bin/cachix';
const installCommand = core.getInput('installCommand') ||
"nix-env --quiet -iA cachix -f https://cachix.org/api/v1/install";
"nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install";
function setup() {
return __awaiter(this, void 0, void 0, function* () {
try {

View file

@ -14,7 +14,7 @@ const skipPush = core.getInput('skipPush');
const cachixExecutable = '/nix/var/nix/profiles/per-user/runner/profile/bin/cachix';
const installCommand =
core.getInput('installCommand') ||
"nix-env --quiet -iA cachix -f https://cachix.org/api/v1/install";
"nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install";
async function setup() {
try {