Skip to content

Commit

Permalink
Merge branch 'main' into issue6105
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Bescos Gascon <[email protected]>
  • Loading branch information
jbescos committed Dec 16, 2024
2 parents 09c5f7c + 7919684 commit db59583
Show file tree
Hide file tree
Showing 3,826 changed files with 129,048 additions and 122,271 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
159 changes: 159 additions & 0 deletions .github/actions/common/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
#
# Copyright (c) 2024 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: 'Common Job Steps'
description: A composite action that abstracts the common steps needed to implement a job
inputs:
native-image:
description: Whether to setup GraalVM native-image
required: false
default: 'false'
maven-cache:
description: Whether to cache the Maven local repository (read-only or read-write)
required: false
default: 'read-only'
build-cache:
description: Whether to cache the Maven build (read-only or read-write)
required: false
default: ''
build-cache-id:
description: Build cache id
required: false
default: 'default'
run:
description: The bash command to run
required: true
artifact-name:
description: Name of the artifact to create
required: false
default: ''
artifact-path:
description: Path of the files to include in the artifact
required: false
default: ''
test-artifact-name:
description: Name of the test artifact to create (excluded on windows), if non empty tests are archived
required: false
default: ''
free-space:
description: Whether to aggressively free disk space on the runner
default: 'false'
runs:
using: "composite"
steps:
- if: ${{ inputs.free-space == 'true' }}
# See https://github.com/actions/runner-images/issues/2840
name: Free disk space
shell: bash
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/share/powershell
- if: ${{ runner.os == 'Windows' }}
name: Use GNU tar
shell: cmd
run: |
echo "Adding GNU tar to PATH"
echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"
git config --global core.autocrlf false
git config --global core.eol lf
- name: Set up GraalVM
if: ${{ inputs.native-image == 'true' }}
uses: graalvm/[email protected]
with:
java-version: ${{ env.GRAALVM_VERSION || env.JAVA_VERSION }}
components: ${{ env.GRAALVM_COMPONENTS }}
check-for-updates: 'false'
set-java-home: 'false'
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
- name: Cache local Maven repository (read-write)
if: ${{ inputs.maven-cache == 'read-write' }}
uses: actions/[email protected]
with:
# See https://github.com/actions/toolkit/issues/713
# Include must not match top level directories
path: |
.m2/repository/**/*.*
!.m2/repository/io/helidon/**
enableCrossOsArchive: true
# only hash top-level poms to keep it fast
key: local-maven-${{ hashFiles('*/pom.xml', 'pom.xml') }}
restore-keys: |
local-maven-
- name: Cache local Maven repository (read-only)
if: ${{ inputs.maven-cache == 'read-only' }}
uses: actions/cache/[email protected]
with:
path: |
.m2/repository/**/*.*
!.m2/repository/io/helidon/**
enableCrossOsArchive: true
key: local-maven-${{ hashFiles('*/pom.xml', 'pom.xml') }}
restore-keys: |
local-maven-
- name: Build cache (read-write)
if: ${{ inputs.build-cache == 'read-write' }}
uses: actions/[email protected]
with:
path: |
./**/target/**
.m2/repository/io/helidon/**
enableCrossOsArchive: true
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.build-cache-id }}
restore-keys: |
build-cache-${{ github.run_id }}-${{ github.run_attempt }}-
build-cache-${{ github.run_id }}-
- name: Build cache (read-only)
if: ${{ inputs.build-cache == 'read-only' }}
uses: actions/cache/[email protected]
with:
path: |
./**/target/**
.m2/repository/io/helidon/**
enableCrossOsArchive: true
fail-on-cache-miss: true
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.build-cache-id }}
restore-keys: |
build-cache-${{ github.run_id }}-${{ github.run_attempt }}-
build-cache-${{ github.run_id }}-
- name: Exec
env:
MAVEN_ARGS: |
${{ env.MAVEN_ARGS }}
-Dmaven.repo.local=${{ github.workspace }}/.m2/repository
run: ${{ inputs.run }}
shell: bash
- name: Archive test results
# https://github.com/actions/upload-artifact/issues/240
if: ${{ inputs.test-artifact-name != '' && runner.os != 'Windows' && always() }}
uses: actions/upload-artifact@v4
with:
if-no-files-found: 'ignore'
name: ${{ inputs.test-artifact-name }}
path: |
**/target/surefire-reports/**
**/target/failsafe-reports/**
**/target/it/**/*.log
- name: Archive artifacts
if: ${{ inputs.artifact-name != '' && inputs.artifact-path != '' && always() }}
uses: actions/upload-artifact@v4
with:
if-no-files-found: 'ignore'
name: ${{ inputs.artifact-name }}
path: ${{ inputs.artifact-path }}
16 changes: 0 additions & 16 deletions .github/workflows/assign-issue-to-project.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/backport-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#
# Copyright (c) 2022, 2024 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Create Backport Issues

on:
workflow_dispatch:
inputs:
issue:
description: 'Issue number'
required: true
version:
description: 'Helidon version this issue was reported for'
required: true
type: choice
options:
- 2.x
- 3.x
- 4.x
default: '2.x'
target-2:
type: boolean
description: 'Port to 2.x?'
default: false
target-3:
type: boolean
description: 'Port to 3.x?'
default: true
target-4:
type: boolean
description: 'Port to 4.x?'
default: true

env:
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}


jobs:
Issue-Backport:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: etc/scripts/backport-issues.sh $GITHUB_REPOSITORY ${{ github.event.inputs.issue }} ${{ github.event.inputs.version }} ${{ github.event.inputs.target-2 }} ${{ github.event.inputs.target-3 }} ${{ github.event.inputs.target-4 }}
41 changes: 0 additions & 41 deletions .github/workflows/create-backport-issues.yml

This file was deleted.

Loading

0 comments on commit db59583

Please sign in to comment.