GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #674 from gdams/alpine · actions/setup-java@576b821

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • e2e-versions.yml
  • dist/setup
    • index.js
  • src/distributions/temurin
    • installer.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/e2e-versions.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/e2e-versions.yml
+26Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,32 @@ jobs:
8686
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
8787
shell: bash
8888

89+
setup-java-alpine-linux:
90+
name: ${{ matrix.distribution }} ${{ matrix.version }} (jdk-x64) - alpine-linux - ${{ matrix.os }}
91+
runs-on: ${{ matrix.os }}
92+
container:
93+
image: alpine:latest
94+
strategy:
95+
fail-fast: false
96+
matrix:
97+
os: [ubuntu-latest]
98+
distribution: ['temurin', 'sapmachine']
99+
version: ['21', '17']
100+
steps:
101+
- name: Checkout
102+
uses: actions/checkout@v6
103+
- name: Install bash
104+
run: apk add --no-cache bash
105+
- name: setup-java
106+
uses: ./
107+
id: setup-java
108+
with:
109+
java-version: ${{ matrix.version }}
110+
distribution: ${{ matrix.distribution }}
111+
- name: Verify Java
112+
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
113+
shell: bash
114+
89115
setup-java-major-minor-versions:
90116
name: ${{ matrix.distribution }} ${{ matrix.version }} (jdk-x64) - ${{ matrix.os }}
91117
needs: setup-java-major-versions
Collapse file

‎dist/setup/index.js‎

Copy file name to clipboardExpand all lines: dist/setup/index.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80035,6 +80035,11 @@ class TemurinDistribution extends base_installer_1.JavaBase {
8003580035
return 'mac';
8003680036
case 'win32':
8003780037
return 'windows';
80038+
case 'linux':
80039+
if (fs_1.default.existsSync('/etc/alpine-release')) {
80040+
return 'alpine-linux';
80041+
}
80042+
return 'linux';
8003880043
default:
8003980044
return process.platform;
8004080045
}
Collapse file

‎src/distributions/temurin/installer.ts‎

Copy file name to clipboardExpand all lines: src/distributions/temurin/installer.ts
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ export class TemurinDistribution extends JavaBase {
171171
return 'mac';
172172
case 'win32':
173173
return 'windows';
174+
case 'linux':
175+
if (fs.existsSync('/etc/alpine-release')) {
176+
return 'alpine-linux';
177+
}
178+
return 'linux';
174179
default:
175180
return process.platform;
176181
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.