Files
wasmtime/.github/actions/define-llvm-env/main.js
Alex Crichton e22e2c3722 Update Github Actions CI set-env/add-path (#2265)
In accordance with [this
advisory](https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/)
it's recommended we moved to a different scheme of setting env vars and
updating PATH.
2020-10-05 15:08:56 -05:00

20 lines
517 B
JavaScript
Executable File

#!/usr/bin/env node
const fs = require('fs');
function set_env(name, val) {
fs.appendFileSync(process.env['GITHUB_ENV'], `${name}=${val}\n`)
}
// On OSX pointing to brew's LLVM location.
if (process.platform == 'darwin') {
set_env("DWARFDUMP", "/usr/local/opt/llvm/bin/llvm-dwarfdump");
set_env("LLDB", "/usr/local/opt/llvm/bin/lldb");
}
// On Linux pointing to specific version
if (process.platform == 'linux') {
set_env("DWARFDUMP", "/usr/bin/llvm-dwarfdump-9");
set_env("LLDB", "/usr/bin/lldb-9");
}