Skip to content

Commit

Permalink
build v1.36.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Jul 6, 2024
1 parent 763a25c commit b27b724
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
3 changes: 1 addition & 2 deletions lib/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.shutdownMySQL = void 0;
exports.shutdownMySQL = shutdownMySQL;
const core = __importStar(require("@actions/core"));
const exec = __importStar(require("@actions/exec"));
const fs = __importStar(require("fs"));
Expand Down Expand Up @@ -60,7 +60,6 @@ async function shutdownMySQL(state) {
await io.rmRF(state.baseDir);
});
}
exports.shutdownMySQL = shutdownMySQL;
async function sleep(waitSec) {
return new Promise(function (resolve) {
setTimeout(() => resolve(), waitSec * 1000);
Expand Down
3 changes: 1 addition & 2 deletions lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMySQL = void 0;
exports.getMySQL = getMySQL;
const core = __importStar(require("@actions/core"));
const fs = __importStar(require("fs"));
const os = __importStar(require("os"));
Expand Down Expand Up @@ -86,7 +86,6 @@ async function getMySQL(distribution, version) {
toolPath,
};
}
exports.getMySQL = getMySQL;
async function acquireMySQL(distribution, version) {
//
// Download - a tool installer intimately knows how to get the tool (and construct urls)
Expand Down
5 changes: 2 additions & 3 deletions lib/mycnf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
// https://dev.mysql.com/doc/refman/8.0/en/option-files.html
// https://mariadb.com/kb/en/configuring-mariadb-with-option-files/
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringify = exports.parse = void 0;
exports.parse = parse;
exports.stringify = stringify;
// parse my.cnf
function parse(cnf) {
const parser = new Parser(cnf);
return parser.parse();
}
exports.parse = parse;
function stringify(cnf) {
const lines = [];
const groupKeys = Object.keys(cnf);
Expand All @@ -34,7 +34,6 @@ function stringify(cnf) {
}
return lines.join("\n");
}
exports.stringify = stringify;
const EOF = "EOF";
const isWhitespace = (ch) => {
return ch === "\t" || ch === "\n" || ch === "\v" || ch === "\f" || ch === "\r" || ch === " ";
Expand Down
9 changes: 4 additions & 5 deletions lib/starter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createUser = exports.startMySQL = exports.getState = exports.saveState = void 0;
exports.saveState = saveState;
exports.getState = getState;
exports.startMySQL = startMySQL;
exports.createUser = createUser;
const child_process = __importStar(require("child_process"));
const core = __importStar(require("@actions/core"));
const exec = __importStar(require("@actions/exec"));
Expand All @@ -48,7 +51,6 @@ function saveState(state) {
core.saveState(TOOLPATH, state.toolPath);
core.saveState(ROOT_PASSWORD, state.rootPassword);
}
exports.saveState = saveState;
function getState() {
const baseDir = core.getState(BASEDIR);
if (!baseDir) {
Expand All @@ -66,7 +68,6 @@ function getState() {
rootPassword,
};
}
exports.getState = getState;
async function startMySQL(mysql, cnf, rootPassword) {
var _a, _b, _c, _d, _e;
// configure mysqld
Expand Down Expand Up @@ -225,7 +226,6 @@ async function startMySQL(mysql, cnf, rootPassword) {
rootPassword,
};
}
exports.startMySQL = startMySQL;
async function createUser(state, user, password) {
const mysql = path.join(state.toolPath, "bin", `mysql${binExt}`);
const env = {};
Expand All @@ -245,7 +245,6 @@ async function createUser(state, user, password) {
});
}
}
exports.createUser = createUser;
// execute "mysqld --verbose --help" and returns its result.
async function verboseHelp(mysql) {
let myOutput = "";
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b27b724

Please sign in to comment.