Skip to content

Commit e029804

Browse files
author
Shelley Lambert
authored
Merge pull request #29 from sophia-guo/ubuntu20
update LIBRARY_PATH to work with ubuntu-latest
2 parents 5c58628 + e368ae3 commit e029804

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3435,6 +3435,7 @@ function installLinuxDepends(version) {
34353435
yield exec.exec(`sudo ln -s /usr/include/x86_64-linux-gnu/* /usr/local/include`);
34363436
yield exec.exec(`sudo ln -sf /usr/local/bin/g++-7.3 /usr/bin/g++`);
34373437
yield exec.exec(`sudo ln -sf /usr/local/bin/gcc-7.3 /usr/bin/gcc`);
3438+
process.env.LIBRARY_PATH = `/usr/lib/x86_64-linux-gnu:${process.env.LIBRARY_PATH}`;
34383439
});
34393440
}
34403441
function installWindowsDepends(version) {

src/builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ async function installLinuxDepends(version: string): Promise<void> {
153153
await exec.exec(`sudo ln -s /usr/include/x86_64-linux-gnu/* /usr/local/include`)
154154
await exec.exec(`sudo ln -sf /usr/local/bin/g++-7.3 /usr/bin/g++`)
155155
await exec.exec(`sudo ln -sf /usr/local/bin/gcc-7.3 /usr/bin/gcc`)
156+
process.env.LIBRARY_PATH=`/usr/lib/x86_64-linux-gnu:${process.env.LIBRARY_PATH}`
156157

157158
}
158159

0 commit comments

Comments
 (0)