mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-03 17:44:07 +02:00
call nix-build even if signing key is not set
This commit is contained in:
parent
7bea2cc0c1
commit
a3cf8f1b39
2 changed files with 37 additions and 29 deletions
|
|
@ -43,10 +43,13 @@ function run() {
|
|||
core.endGroup();
|
||||
if (signingKey !== "") {
|
||||
core.exportVariable('CACHIX_SIGNING_KEY', signingKey);
|
||||
}
|
||||
if (skipNixBuild !== 'true') {
|
||||
core.startGroup(`Invoking nix-build`);
|
||||
if (signingKey !== "") {
|
||||
// Remember existing store paths
|
||||
yield exec.exec("sh", ["-c", `nix path-info --all | grep -v '\.drv$' > store-path-pre-build`]);
|
||||
}
|
||||
let paths = '';
|
||||
const options = {
|
||||
listeners: {
|
||||
|
|
@ -59,6 +62,7 @@ function run() {
|
|||
const additionalArgs = strings_1.nonEmptySplit(nixBuildArgs, /\s+/);
|
||||
yield exec.exec('nix-build', additionalArgs.concat(args), options);
|
||||
core.endGroup();
|
||||
if (signingKey !== "") {
|
||||
core.startGroup('Cachix: Pushing paths');
|
||||
yield exec.exec("sh", ["-c", `nix path-info --all | grep -v '\.drv$' | cat - store-path-pre-build | sort | uniq -u | ${cachixExecutable} push ${name}`]);
|
||||
core.endGroup();
|
||||
|
|
|
|||
|
|
@ -31,12 +31,15 @@ async function run() {
|
|||
|
||||
if (signingKey !== "") {
|
||||
core.exportVariable('CACHIX_SIGNING_KEY', signingKey);
|
||||
}
|
||||
|
||||
if (skipNixBuild !== 'true') {
|
||||
core.startGroup(`Invoking nix-build`);
|
||||
|
||||
if (signingKey !== "") {
|
||||
// Remember existing store paths
|
||||
await exec.exec("sh", ["-c", `nix path-info --all | grep -v '\.drv$' > store-path-pre-build`]);
|
||||
}
|
||||
|
||||
let paths = '';
|
||||
const options = {
|
||||
|
|
@ -51,6 +54,7 @@ async function run() {
|
|||
await exec.exec('nix-build', additionalArgs.concat(args), options);
|
||||
core.endGroup()
|
||||
|
||||
if (signingKey !== "") {
|
||||
core.startGroup('Cachix: Pushing paths');
|
||||
await exec.exec("sh", ["-c", `nix path-info --all | grep -v '\.drv$' | cat - store-path-pre-build | sort | uniq -u | ${cachixExecutable} push ${name}`]);
|
||||
core.endGroup();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue