2
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
# This code is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License version 2 only, as
7
# published by the Free Software Foundation. Oracle designates this
8
# particular file as subject to the "Classpath" exception as provided
9
# by Oracle in the LICENSE file that accompanied this code.
11
# This code is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
# version 2 for more details (a copy is included in the LICENSE file that
15
# accompanied this code).
17
# You should have received a copy of the GNU General Public License version
18
# 2 along with this work; if not, write to the Free Software Foundation,
19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
# or visit www.oracle.com if you need additional information or have any
40
default: 'product-bundles test-bundles'
44
default: '[ "debug", "release" ]'
73
debug-level: ${{ fromJSON(inputs.debug-levels) }}
76
flags: --with-debug-level=fastdebug
80
- name: 'Checkout the JDK source'
81
uses: actions/checkout@v4
83
- name: 'Get the BootJDK'
85
uses: ./.github/actions/get-bootjdk
91
uses: ./.github/actions/get-jtreg
95
uses: ./.github/actions/get-gtest
97
- name: 'Set architecture'
100
# Set a proper suffix for packages if using a different architecture
101
if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
102
echo 'suffix=:${{ inputs.apt-architecture }}' >> $GITHUB_OUTPUT
105
# Upgrading apt to solve libc6 installation bugs, see JDK-8260460.
106
- name: 'Install toolchain and dependencies'
108
# Install dependencies using apt-get
109
if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
110
sudo dpkg --add-architecture ${{ inputs.apt-architecture }}
113
sudo apt-get install --only-upgrade apt
114
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 }}
115
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 }}
120
--with-conf-name=${{ inputs.platform }}
122
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
123
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
124
--with-jtreg=${{ steps.jtreg.outputs.path }}
125
--with-gtest=${{ steps.gtest.outputs.path }}
127
--with-jmod-compress=zip-1
128
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
129
echo "Dumping config.log:" &&
135
uses: ./.github/actions/do-build
137
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
138
platform: ${{ inputs.platform }}
139
debug-suffix: '${{ matrix.suffix }}'
141
- name: 'Upload bundles'
142
uses: ./.github/actions/upload-bundles
144
platform: ${{ inputs.platform }}
145
debug-suffix: '${{ matrix.suffix }}'