File tree Expand file tree Collapse file tree
src/distributions/temurin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments