Skip to content

Commit

Permalink
Fix vessel install.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Aug 9, 2021
1 parent 7cc6280 commit 5f8f393
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ function run() {
// Opt-out of having data collected about dfx usage.
core.exportVariable('DFX_TELEMETRY_DISABLED', 1);
// Install dfx.
child_process_1.default.execSync(`echo y | DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"`);
child_process_1.default.execSync(`mkdir -p /home/runner/bin`);
core.addPath('/home/runner/bin');
child_process_1.default.execSync(`echo y | DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"`);
const dfxPath = yield io.which('dfx');
core.debug(dfxPath);
infoExec(`${dfxPath} --version`);
Expand All @@ -79,7 +80,7 @@ function run() {
// Install vessel.
const vesselVersion = core.getInput('vessel-version');
if (vesselVersion) {
child_process_1.default.execSync(`curl -L https://github.com/dfinity/vessel/releases/download/v${vesselVersion}/vessel-linux64 > /home/runner/bin/vessel`);
child_process_1.default.execSync(`wget -O /home/runner/bin/vessel https://github.com/dfinity/vessel/releases/download/v${vesselVersion}/vessel-linux64`);
child_process_1.default.execSync(`chmod +x /home/runner/bin/vessel`);
const vesselPath = yield io.which('vessel');
infoExec(`${vesselPath} --version`);
Expand Down
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export async function run() {
core.exportVariable('DFX_TELEMETRY_DISABLED', 1);

// Install dfx.
cp.execSync(`echo y | DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"`);
cp.execSync(`mkdir -p /home/runner/bin`);
core.addPath('/home/runner/bin');
cp.execSync(`echo y | DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"`);

const dfxPath = await io.which('dfx');
core.debug(dfxPath);
Expand Down Expand Up @@ -46,7 +47,7 @@ export async function run() {
// Install vessel.
const vesselVersion = core.getInput('vessel-version');
if (vesselVersion) {
cp.execSync(`curl -L https://github.com/dfinity/vessel/releases/download/v${vesselVersion}/vessel-linux64 > /home/runner/bin/vessel`);
cp.execSync(`wget -O /home/runner/bin/vessel https://github.com/dfinity/vessel/releases/download/v${vesselVersion}/vessel-linux64`);
cp.execSync(`chmod +x /home/runner/bin/vessel`);

const vesselPath = await io.which('vessel');
Expand Down

0 comments on commit 5f8f393

Please sign in to comment.