Compare commits

..

3 Commits

Author SHA1 Message Date
Fabio Niephaus
406690122e Bump version to 1.0.6. 2022-04-20 13:18:08 +02:00
Fabio Niephaus
4f62eae3cc Upgrade zlib to latest commit
This commit will be part of zlib `1.2.12.1` and includes a critical fix for CRC errors that can occur when decompressing files in Java and native executables.

Fixes #10
2022-04-20 13:15:43 +02:00
Fabio Niephaus
5336aa8b95 Tweak names. [ci skip] 2022-04-20 11:54:31 +02:00
6 changed files with 13 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ This action:
### Quickstart Template
```yml
name: GraalVM build
name: GraalVM Community Edition build
on: [push, pull_request]
jobs:
build:
@@ -44,7 +44,7 @@ jobs:
### Building a HelloWorld with GraalVM Native Image on Different Platforms
```yml
name: GraalVM Native Image build
name: GraalVM Native Image builds
on: [push, pull_request]
jobs:
build:
@@ -87,7 +87,7 @@ jobs:
4. Store this token as a [GitHub Action secret][gha-secrets]. For this template, we use the name `GDS_TOKEN`.
```yml
name: GraalVM build
name: GraalVM Enterprise Edition build
on: [push, pull_request]
jobs:
build:

8
dist/index.js generated vendored
View File

@@ -168,10 +168,10 @@ function setUpNativeImageMusl() {
const muslDownloadPath = yield tc.downloadTool(`http://more.musl.cc/10/x86_64-linux-musl/${MUSL_NAME}.tgz`);
const muslExtractPath = yield tc.extractTar(muslDownloadPath);
const muslPath = (0, path_1.join)(muslExtractPath, MUSL_NAME);
const zlibVersion = '1.2.11';
const zlibDownloadPath = yield tc.downloadTool(`https://zlib.net/fossils/zlib-${zlibVersion}.tar.gz`);
const zlibCommit = 'ec3df00224d4b396e2ac6586ab5d25f673caa4c2';
const zlibDownloadPath = yield tc.downloadTool(`https://github.com/madler/zlib/archive/${zlibCommit}.tar.gz`);
const zlibExtractPath = yield tc.extractTar(zlibDownloadPath);
const zlibPath = (0, path_1.join)(zlibExtractPath, `zlib-${zlibVersion}`);
const zlibPath = (0, path_1.join)(zlibExtractPath, `zlib-${zlibCommit}`);
const zlibBuildOptions = {
cwd: zlibPath,
env: Object.assign(Object.assign({}, process.env), { CC: (0, path_1.join)(muslPath, 'bin', 'gcc') })
@@ -243,7 +243,7 @@ const assert_1 = __nccwpck_require__(9491);
const v4_1 = __importDefault(__nccwpck_require__(824));
function downloadGraalVMEE(gdsToken, version, javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const userAgent = `GraalVMGitHubAction/1.0.5 (arch:${c.GRAALVM_ARCH}; os:${c.GRAALVM_PLATFORM}; java:${javaVersion})`;
const userAgent = `GraalVMGitHubAction/1.0.6 (arch:${c.GRAALVM_ARCH}; os:${c.GRAALVM_PLATFORM}; java:${javaVersion})`;
const baseArtifact = yield fetchArtifact(userAgent, 'isBase:True', version, javaVersion);
return downloadArtifact(gdsToken, userAgent, baseArtifact);
});

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "setup-graalvm",
"version": "1.0.5",
"version": "1.0.6",
"private": true,
"description": "GitHub Action for GraalVM",
"main": "lib/main.js",

View File

@@ -23,12 +23,12 @@ export async function setUpNativeImageMusl(): Promise<void> {
const muslExtractPath = await tc.extractTar(muslDownloadPath)
const muslPath = join(muslExtractPath, MUSL_NAME)
const zlibVersion = '1.2.11'
const zlibCommit = 'ec3df00224d4b396e2ac6586ab5d25f673caa4c2'
const zlibDownloadPath = await tc.downloadTool(
`https://zlib.net/fossils/zlib-${zlibVersion}.tar.gz`
`https://github.com/madler/zlib/archive/${zlibCommit}.tar.gz`
)
const zlibExtractPath = await tc.extractTar(zlibDownloadPath)
const zlibPath = join(zlibExtractPath, `zlib-${zlibVersion}`)
const zlibPath = join(zlibExtractPath, `zlib-${zlibCommit}`)
const zlibBuildOptions = {
cwd: zlibPath,
env: {

View File

@@ -32,7 +32,7 @@ export async function downloadGraalVMEE(
version: string,
javaVersion: string
): Promise<string> {
const userAgent = `GraalVMGitHubAction/1.0.5 (arch:${c.GRAALVM_ARCH}; os:${c.GRAALVM_PLATFORM}; java:${javaVersion})`
const userAgent = `GraalVMGitHubAction/1.0.6 (arch:${c.GRAALVM_ARCH}; os:${c.GRAALVM_PLATFORM}; java:${javaVersion})`
const baseArtifact = await fetchArtifact(
userAgent,
'isBase:True',