Compare commits

...

8 Commits

Author SHA1 Message Date
George Adams
8a4bcae8f1
Merge ff1f7f380c into bcfbca5b71 2024-09-11 11:25:09 -07:00
Joel Ambass
bcfbca5b71
Merge pull request #684 from actions/Jcambass-patch-1
Add workflow file for publishing releases to immutable action package
2024-09-11 09:54:38 +02:00
Joel Ambass
78eae7945c
Add workflow file for publishing releases to immutable action package
This workflow file publishes new action releases to the immutable action package of the same name as this repo.

This is part of the Immutable Actions project which is not yet fully released to the public. First party actions like this one are part of our initial testing of this feature.
2024-09-11 09:48:56 +02:00
George Adams
ff1f7f380c
rework test 2024-08-16 10:30:36 +01:00
George Adams
d67365e824
rework test 2024-08-16 10:23:50 +01:00
George Adams
a3755773a1
add dist 2024-08-16 10:20:34 +01:00
George Adams
0685457b96
attempt to add e2e test for Alpine 2024-08-16 10:19:46 +01:00
George Adams
12cfe0fd55
temurin: add support for Alpine Linux 2024-08-16 10:17:18 +01:00
4 changed files with 58 additions and 0 deletions

View File

@ -63,6 +63,32 @@ jobs:
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
shell: bash
setup-java-alpine-linux:
name: ${{ matrix.distribution }} ${{ matrix.version }} (jdk-x64) - alpine-linux - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
container:
image: alpine:latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
distribution: ['temurin']
version: ['21', '17']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install bash
run: apk add --no-cache bash
- name: setup-java
uses: ./
id: setup-java
with:
java-version: ${{ matrix.version }}
distribution: ${{ matrix.distribution }}
- name: Verify Java
run: bash __tests__/verify-java.sh "${{ matrix.version }}" "${{ steps.setup-java.outputs.path }}"
shell: bash
setup-java-major-minor-versions:
name: ${{ matrix.distribution }} ${{ matrix.version }} (jdk-x64) - ${{ matrix.os }}
needs: setup-java-major-versions

View File

@ -0,0 +1,22 @@
name: 'Publish Immutable Action Version'
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- name: Checking out
uses: actions/checkout@v4
- name: Publish
id: publish
uses: actions/publish-immutable-action@0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

5
dist/setup/index.js vendored
View File

@ -125448,6 +125448,11 @@ class TemurinDistribution extends base_installer_1.JavaBase {
return 'mac';
case 'win32':
return 'windows';
case 'linux':
if (fs_1.default.existsSync('/etc/alpine-release')) {
return 'alpine-linux';
}
return 'linux';
default:
return process.platform;
}

View File

@ -173,6 +173,11 @@ export class TemurinDistribution extends JavaBase {
return 'mac';
case 'win32':
return 'windows';
case 'linux':
if (fs.existsSync('/etc/alpine-release')) {
return 'alpine-linux';
}
return 'linux';
default:
return process.platform;
}