1+ # This project is a modified version of OpenJDK, licensed under GPL v2.
2+ # Modifications Copyright (C) 2025 ByteDance Inc.
13#
24# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
35# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3739 make-target :
3840 required : false
3941 type : string
40- default : ' product-bundles test-bundles '
42+ default : ' cvm8default17 '
4143 debug-levels :
4244 required : false
4345 type : string
44- default : ' [ "debug ", "release" ]'
46+ default : ' [ "fastdebug ", "release" ]'
4547 apt-gcc-version :
4648 required : true
4749 type : string
5557jobs :
5658 build-linux :
5759 name : build
58- runs-on : ubuntu-20 .04
60+ runs-on : ubuntu-22 .04
5961
6062 strategy :
6163 fail-fast : false
6264 matrix :
6365 debug-level : ${{ fromJSON(inputs.debug-levels) }}
64- include :
65- - debug-level : debug
66- flags : --with-debug-level=fastdebug
67- suffix : -debug
6866
6967 steps :
7068 - name : ' Checkout the JDK source'
7169 uses : actions/checkout@v3
7270
73- - name : ' Get the BootJDK'
74- id : bootjdk
75- uses : ./.github/actions/get-bootjdk
76- with :
77- platform : linux-x64
78-
7971 - name : ' Get JTReg'
8072 id : jtreg
8173 uses : ./.github/actions/get-jtreg
@@ -102,31 +94,21 @@ jobs:
10294 sudo apt-get update
10395 sudo apt-get install --only-upgrade apt
10496 sudo apt-get install gcc-${{ inputs.apt-gcc-version }} g++-${{ inputs.apt-gcc-version }} 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 }}
105- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
106-
107- - name : ' Configure'
108- run : >
109- bash configure
110- --with-conf-name=${{ inputs.platform }}
111- ${{ matrix.flags }}
112- --with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
113- --with-boot-jdk=${{ steps.bootjdk.outputs.path }}
114- --with-jtreg=${{ steps.jtreg.outputs.path }}
115- --with-gtest=${{ steps.gtest.outputs.path }}
116- --enable-jtreg-failure-handler
117- --with-zlib=system
118- ${{ inputs.extra-conf-options }}
97+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.apt-gcc-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.apt-gcc-version }}
11998
12099 - name : ' Build'
121100 id : build
122101 uses : ./.github/actions/do-build
123102 with :
124103 make-target : ' ${{ inputs.make-target }}'
125104 platform : ${{ inputs.platform }}
126- debug-suffix : ' ${{ matrix.suffix }}'
105+ debug-suffix : ' ${{ matrix.debug-level }}'
127106
128107 - name : ' Upload bundles'
129- uses : ./.github/ actions/upload-bundles
108+ uses : actions/upload-artifact@v4
130109 with :
131- platform : ${{ inputs.platform }}
132- debug-suffix : ' ${{ matrix.suffix }}'
110+ name : cvm8+17-${{ inputs.platform }}${{ matrix.debug-level }}
111+ path : cvm/build/jdk8
112+ retention-days : 1
113+ if-no-files-found : error
114+ overwrite : true
0 commit comments