Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Upgrade deps and add GRAALVM_HOME env #9

Merged
merged 3 commits into from
Dec 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,27 @@ on: [push]

jobs:
simple:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
gu-binary: [gu, gu.cmd]
exclude:
- os: ubuntu-latest
gu-binary: gu.cmd
- os: macos-latest
gu-binary: gu.cmd
- os: windows-latest
gu-binary: gu
steps:
- name: Setup GraalVM
uses: DeLaGuardo/setup-graalvm@master
with:
graalvm-version: 19.3.0.java8
graalvm-version: 20.3.0.java11

- name: Check binary
- name: Check java binary
run: java -version

- name: Check gu binary
run: |
java -version
${{ matrix.gu-binary }} install native-image
76 changes: 36 additions & 40 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/sourcemap-register.js
Original file line number Diff line number Diff line change
Expand Up @@ -3847,23 +3847,23 @@ exports.SourceMapConsumer = __webpack_require__(327).SourceMapConsumer;
/***/ ((module) => {

"use strict";
module.exports = require("fs");
module.exports = require("fs");;

/***/ }),

/***/ 282:
/***/ ((module) => {

"use strict";
module.exports = require("module");
module.exports = require("module");;

/***/ }),

/***/ 622:
/***/ ((module) => {

"use strict";
module.exports = require("path");
module.exports = require("path");;

/***/ })

Expand Down
3 changes: 2 additions & 1 deletion lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Expand Down Expand Up @@ -93,6 +93,7 @@ function getGraalVM(version) {
const extendedJavaHome = `JAVA_HOME_${version}`;
core.exportVariable('JAVA_HOME', toolPath);
core.exportVariable(extendedJavaHome, toolPath);
core.exportVariable('GRAALVM_HOME', toolPath);
core.addPath(path.join(toolPath, 'bin'));
});
}
Expand Down
2 changes: 1 addition & 1 deletion lib/setup-graalvm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Expand Down
Loading