mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 11:06:53 +08:00
Change console logging to core.debug logs
This commit is contained in:
@@ -22,7 +22,7 @@ const os = __importStar(require("os"));
|
|||||||
const path = __importStar(require("path"));
|
const path = __importStar(require("path"));
|
||||||
// Store information about the environment
|
// Store information about the environment
|
||||||
const osPlat = os.platform(); // possible values: win32 (Windows), linux (Linux), darwin (macOS)
|
const osPlat = os.platform(); // possible values: win32 (Windows), linux (Linux), darwin (macOS)
|
||||||
console.log(`[DEBUG] platform: ${osPlat}`);
|
core.debug(`platform: ${osPlat}`);
|
||||||
function getMajorMinorVersion(version) {
|
function getMajorMinorVersion(version) {
|
||||||
return version.split('.').slice(0, 2).join('.');
|
return version.split('.').slice(0, 2).join('.');
|
||||||
}
|
}
|
||||||
@@ -70,10 +70,10 @@ function run() {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
const version = core.getInput('version');
|
const version = core.getInput('version');
|
||||||
console.log(`[DEBUG] selected Julia version: ${version}`);
|
core.debug(`selected Julia version: ${version}`);
|
||||||
// Download Julia
|
// Download Julia
|
||||||
const downloadURL = getDownloadURL(version);
|
const downloadURL = getDownloadURL(version);
|
||||||
console.log(`[DEBUG] download Julia from ${downloadURL}`);
|
core.debug(`download Julia from ${downloadURL}`);
|
||||||
const juliaDownloadPath = yield tc.downloadTool(downloadURL);
|
const juliaDownloadPath = yield tc.downloadTool(downloadURL);
|
||||||
// Install Julia
|
// Install Julia
|
||||||
if (osPlat === 'linux') { // Linux
|
if (osPlat === 'linux') { // Linux
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import * as path from 'path'
|
|||||||
|
|
||||||
// Store information about the environment
|
// Store information about the environment
|
||||||
const osPlat = os.platform() // possible values: win32 (Windows), linux (Linux), darwin (macOS)
|
const osPlat = os.platform() // possible values: win32 (Windows), linux (Linux), darwin (macOS)
|
||||||
console.log(`[DEBUG] platform: ${osPlat}`)
|
core.debug(`platform: ${osPlat}`)
|
||||||
|
|
||||||
function getMajorMinorVersion(version: string): string {
|
function getMajorMinorVersion(version: string): string {
|
||||||
return version.split('.').slice(0, 2).join('.')
|
return version.split('.').slice(0, 2).join('.')
|
||||||
@@ -56,11 +56,11 @@ function getFileName(version: string): string {
|
|||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
const version = core.getInput('version')
|
const version = core.getInput('version')
|
||||||
console.log(`[DEBUG] selected Julia version: ${version}`)
|
core.debug(`selected Julia version: ${version}`)
|
||||||
|
|
||||||
// Download Julia
|
// Download Julia
|
||||||
const downloadURL = getDownloadURL(version)
|
const downloadURL = getDownloadURL(version)
|
||||||
console.log(`[DEBUG] download Julia from ${downloadURL}`)
|
core.debug(`download Julia from ${downloadURL}`)
|
||||||
const juliaDownloadPath = await tc.downloadTool(downloadURL)
|
const juliaDownloadPath = await tc.downloadTool(downloadURL)
|
||||||
|
|
||||||
// Install Julia
|
// Install Julia
|
||||||
|
|||||||
Reference in New Issue
Block a user