Skip to content

Commit 80eeab0

Browse files
committed
Merge branch 'sapmachine' into pr-jdk-26+14
2 parents ab9f70d + 1314ce3 commit 80eeab0

File tree

158 files changed

+18259
-115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+18259
-115
lines changed

.github/actions/upload-bundles/action.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ runs:
4747
id: bundles
4848
run: |
4949
# Rename bundles to consistent names
50-
jdk_bundle_zip="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
51-
jdk_bundle_tar_gz="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
52-
static_jdk_bundle_zip="$(ls build/*/bundles/static-jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
53-
static_jdk_bundle_tar_gz="$(ls build/*/bundles/static-jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
54-
symbols_bundle="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}-symbols.tar.gz 2> /dev/null || true)"
55-
tests_bundle="$(ls build/*/bundles/jdk-*_bin-tests${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
56-
static_libs_bundle="$(ls build/*/bundles/jdk-*_bin-static-libs${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
50+
# SapMachine 2020-11-04: Adapt bundle names
51+
jdk_bundle_zip="$(ls build/*/bundles/sapmachine-jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
52+
jdk_bundle_tar_gz="$(ls build/*/bundles/sapmachine-jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
53+
static_jdk_bundle_zip="$(ls build/*/bundles/sapmachine-static-jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
54+
static_jdk_bundle_tar_gz="$(ls build/*/bundles/sapmachine-static-jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
55+
symbols_bundle="$(ls build/*/bundles/sapmachine-jdk-*_bin${{ inputs.debug-suffix }}-symbols.tar.gz 2> /dev/null || true)"
56+
tests_bundle="$(ls build/*/bundles/sapmachine-jdk-*_bin-tests${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
57+
static_libs_bundle="$(ls build/*/bundles/sapmachine-jdk-*_bin-static-libs${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
5758
5859
mkdir bundles
5960

.github/pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Replace this line with a description of this pull request and replace Issue in `fixes #Issue` down below with an issue number. Otherwise PR testing will fail.
2+
3+
When integrating please make sure you:
4+
- Create a merge commit when merging an OpenJDK upstream PR
5+
- Use Rebase & Merge when your PR contains only one commit with a commit message of the form `SapMachine #<Issue>: <Description>`
6+
- Use Squash and merge when there are several commits on the PR and with that update the commit message to `SapMachine #<Issue>: <Description>` and remove commit messages from sub-commits
7+
8+
fixes #Issue

.github/workflows/build-alpine-linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
with:
8888
platform: alpine-linux-x64
8989

90+
# SapMachine 2025-06-11: reduce number of cds/jsa archives
9091
- name: 'Configure'
9192
run: >
9293
bash configure
@@ -96,6 +97,7 @@ jobs:
9697
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
9798
--with-zlib=system
9899
--with-jmod-compress=zip-1
100+
--with-vendor-name="SAP SE"
99101
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
100102
echo "Dumping config.log:" &&
101103
cat config.log &&

.github/workflows/build-cross-compile.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ jobs:
166166
sudo rm -rf sysroot/
167167
if: steps.create-sysroot.outcome != 'success' && steps.get-cached-sysroot.outputs.cache-hit != 'true'
168168

169+
# SapMachine 2025-06-11: reduce number of cds/jsa archives
169170
- name: 'Configure'
170171
run: >
171172
bash configure
@@ -179,6 +180,7 @@ jobs:
179180
--openjdk-target=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}
180181
--with-sysroot=sysroot
181182
--with-jmod-compress=zip-1
183+
--with-vendor-name="SAP SE"
182184
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
183185
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
184186
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Workflow for building the sapmachine.io site and deploying it to GitHub Pages
2+
name: Build and deploy sapmachine.io page
3+
4+
on:
5+
# Allows to run this workflow manually from the Actions tab
6+
workflow_dispatch:
7+
8+
# Listens to repository dispatch events, originating from pushes to the gh-pages branch in SAP/SapMachine-infrastructure
9+
repository_dispatch:
10+
types: [gh-page-build]
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Build job
26+
build:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
32+
repository: 'SAP/SapMachine-infrastructure'
33+
ref: 'gh-pages'
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
- name: Build with Jekyll
37+
uses: actions/jekyll-build-pages@v1
38+
with:
39+
source: ./
40+
destination: ./_site
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
44+
# Deployment job
45+
deploy:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: ubuntu-latest
50+
needs: build
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

.github/workflows/build-linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
121121
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
122122
123+
# SapMachine 2025-06-11: reduce number of cds/jsa archives
123124
- name: 'Configure'
124125
run: >
125126
bash configure
@@ -131,6 +132,7 @@ jobs:
131132
--with-gtest=${{ steps.gtest.outputs.path }}
132133
--with-zlib=system
133134
--with-jmod-compress=zip-1
135+
--with-vendor-name="SAP SE"
134136
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
135137
echo "Dumping config.log:" &&
136138
cat config.log &&

.github/workflows/build-macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
# This will make GNU make available as 'make' and not only as 'gmake'
100100
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
101101
102+
# SapMachine 2025-06-11: reduce number of cds/jsa archives
102103
- name: 'Configure'
103104
run: >
104105
bash configure
@@ -110,6 +111,7 @@ jobs:
110111
--with-gtest=${{ steps.gtest.outputs.path }}
111112
--with-zlib=system
112113
--with-jmod-compress=zip-1
114+
--with-vendor-name="SAP SE"
113115
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
114116
echo "Dumping config.log:" &&
115117
cat config.log &&

.github/workflows/build-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
--add Microsoft.VisualStudio.Component.VC.${{ inputs.msvc-toolset-version }}.${{ inputs.msvc-toolset-architecture }}
124124
if: steps.toolchain-check.outputs.toolchain-installed != 'true'
125125

126+
# SapMachine 2025-06-11: reduce number of cds/jsa archives
126127
- name: 'Configure'
127128
run: >
128129
bash configure
@@ -134,6 +135,7 @@ jobs:
134135
--with-gtest=${{ steps.gtest.outputs.path }}
135136
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
136137
--with-jmod-compress=zip-1
138+
--with-vendor-name="SAP SE"
137139
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
138140
echo "Dumping config.log:" &&
139141
cat config.log &&

.github/workflows/main.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@
2323
# questions.
2424
#
2525

26-
name: 'OpenJDK GHA Sanity Checks'
26+
# SapMachine 2022-06-22: Change the name of the GitHub Action
27+
name: 'SapMachine GHA Sanity Checks'
2728

2829
on:
2930
push:
3031
branches-ignore:
3132
- pr/*
33+
# SapMachine 2020-11-04: Trigger on pull request
34+
pull_request:
35+
branches:
36+
- sapmachine
3237
workflow_dispatch:
3338
inputs:
3439
platforms:
@@ -57,6 +62,8 @@ jobs:
5762

5863
prepare:
5964
name: 'Prepare the run'
65+
# SapMachine 2022-06-23: On 'pull_request' we only want to run GHA if the PR comes from a remote repo. Otherwise we have the run on 'push' already as a check.
66+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
6067
runs-on: ubuntu-22.04
6168
env:
6269
# List of platforms to exclude by default
@@ -102,7 +109,8 @@ jobs:
102109
function check_platform() {
103110
if [[ $GITHUB_EVENT_NAME == workflow_dispatch ]]; then
104111
input='${{ github.event.inputs.platforms }}'
105-
elif [[ $GITHUB_EVENT_NAME == push ]]; then
112+
# SapMachine 2022-06-24: Also handle 'pull_request' event.
113+
elif [[ $GITHUB_EVENT_NAME == push ]] || [[ $GITHUB_EVENT_NAME == pull_request ]]; then
106114
if [[ '${{ !secrets.JDK_SUBMIT_FILTER || startsWith(github.ref, 'refs/heads/submit/') }}' == 'false' ]]; then
107115
# If JDK_SUBMIT_FILTER is set, and this is not a "submit/" branch, don't run anything
108116
>&2 echo 'JDK_SUBMIT_FILTER is set and not a "submit/" branch'
@@ -164,11 +172,23 @@ jobs:
164172
return
165173
fi
166174
175+
# SapMachine 2025-07-14: Add sapmachine branch
176+
if [[ $BRANCH == "sapmachine" ]]; then
177+
echo 'true'
178+
return
179+
fi
180+
167181
# ...same for stabilization branches
168182
if [[ $BRANCH =~ "jdk(.*)" ]]; then
169183
echo 'true'
170184
return
171185
fi
186+
187+
# SapMachine 2025-07-14: Add sapmachine* branches
188+
if [[ $BRANCH =~ "sapmachine([0-9]+)" ]]; then
189+
echo 'true'
190+
return
191+
fi
172192
fi
173193
174194
echo 'false'

.github/workflows/wiki.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Runs update-wiki action every day at 20:00 UTC
2+
3+
name: 'Wiki Update'
4+
5+
on:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '0 20 * * *'
9+
10+
jobs:
11+
wiki:
12+
if: ${{ github.event_name != 'schedule' || github.repository == 'SAP/SapMachine' }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout SapMachine Wiki source
16+
uses: actions/checkout@v4
17+
with:
18+
repository: 'SAP/SapMachine.wiki.git'
19+
ref: 'master'
20+
- name: Configure git
21+
run: |
22+
git config user.name "SapMachine Github Actions Bot"
23+
git config user.email "[email protected]"
24+
git remote set-url origin https://github.com/SAP/SapMachine.wiki.git
25+
- name: Update Wiki
26+
run: |
27+
pip3 install feedparser
28+
python3 scripts/update_blogs.py update
29+
git commit -a -m "Update blogs" || echo "No updates"
30+
- name: Push changes
31+
run: git push origin master
32+
working-directory: .
33+
shell: bash

0 commit comments

Comments
 (0)