mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-03 09:34:11 +02:00
Bump cachix to development to solve a bug
This commit is contained in:
parent
252ae9fce0
commit
b14833e3eb
1 changed files with 13 additions and 3 deletions
16
src/main.ts
16
src/main.ts
|
|
@ -33,10 +33,20 @@ async function run() {
|
|||
}
|
||||
|
||||
core.startGroup('Installing Cachix')
|
||||
await exec.exec('nix-env', ['-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']);
|
||||
// TODO: use cachix 0.3.4 once released
|
||||
//await exec.exec('nix-env', ['-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']);
|
||||
await exec.exec(
|
||||
'nix-env',
|
||||
[ '-if'
|
||||
, 'https://github.com/cachix/cachix/tarball/empty-stdin'
|
||||
, '--substituters'
|
||||
, 'https://cachix.cachix.org'
|
||||
, '--trusted-public-keys'
|
||||
, 'cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM='
|
||||
])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup(`Using Cachix ` + cachixPush);
|
||||
core.startGroup(`Cachix: using ` + cachixPush);
|
||||
await exec.exec('cachix', ['use', cachixPush]);
|
||||
core.endGroup()
|
||||
|
||||
|
|
@ -56,7 +66,7 @@ async function run() {
|
|||
await exec.exec('nix-build', args, options);
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup(`Pushing to Cachix ` + cachixPush);
|
||||
core.startGroup(`Cachix: pushing to ` + cachixPush);
|
||||
await exec.exec('cachix', ['push', cachixPush].concat(saneSplit(paths, /\s/).join(' ')));
|
||||
core.endGroup()
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue