Skip to content

Commit

Permalink
Merge pull request #13 from skyf0l/master
Browse files Browse the repository at this point in the history
Export Z3_SYS_Z3_HEADER and LIBRARY_PATH
  • Loading branch information
pavpanchekha authored Jun 22, 2023
2 parents aed2df7 + dac5553 commit 462fb57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function z3URL(architecture, version, distribution) {
return { path: path, file: file };
}

(async function() {
(async function () {
try {
const architecture = core.getInput('architecture', { required: true });
const distribution = core.getInput('distribution', { required: true });
Expand All @@ -18,7 +18,9 @@ function z3URL(architecture, version, distribution) {
const dir = await tc.extractZip(path)
const cachedPath = await tc.cacheDir(dir, 'z3', version);
core.addPath(cachedPath + "/" + url.file.replace(/\.zip$/, "") + "/bin");
core.exportVariable("CPATH", cachedPath + "/" + url.file.replace(/\.zip$/, "") + "/include");
core.exportVariable("CPATH", cachedPath + "/" + url.file.replace(/\.zip$/, "") + "/include");
core.exportVariable("LIBRARY_PATH", cachedPath + "/" + url.file.replace(/\.zip$/, "") + "/bin");
core.exportVariable("Z3_SYS_Z3_HEADER", cachedPath + "/" + url.file.replace(/\.zip$/, "") + "/include/z3.h");
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit 462fb57

Please sign in to comment.