114 # Install dependencies using apt-get
115 if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
116 sudo dpkg --add-architecture ${{ inputs.apt-architecture }}
117 fi
118 sudo apt-get update
119 sudo apt-get install --only-upgrade apt
120 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 }}
121 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 }}
122
123 - name: 'Configure'
124 run: >
125 bash configure
126 --with-conf-name=${{ inputs.platform }}
127 ${{ matrix.debug-level == 'debug' && '--with-debug-level=fastdebug' || '' }}
128 --with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
129 --with-boot-jdk=${{ steps.bootjdk.outputs.path }}
130 --with-jtreg=${{ steps.jtreg.outputs.path }}
131 --with-gtest=${{ steps.gtest.outputs.path }}
132 --with-zlib=system
133 --with-jmod-compress=zip-1
134 ${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
135 echo "Dumping config.log:" &&
136 cat config.log &&
137 exit 1)
138
139 - name: 'Build'
140 id: build
141 uses: ./.github/actions/do-build
142 with:
143 make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
144 platform: ${{ inputs.platform }}
145 debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
146 if: ${{ inputs.dry-run == false }}
147
148 - name: 'Upload bundles'
149 uses: ./.github/actions/upload-bundles
150 with:
151 platform: ${{ inputs.platform }}
152 debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
153 bundle-suffix: ${{ inputs.bundle-suffix }}
|
114 # Install dependencies using apt-get
115 if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
116 sudo dpkg --add-architecture ${{ inputs.apt-architecture }}
117 fi
118 sudo apt-get update
119 sudo apt-get install --only-upgrade apt
120 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 }}
121 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 }}
122
123 - name: 'Configure'
124 run: >
125 bash configure
126 --with-conf-name=${{ inputs.platform }}
127 ${{ matrix.debug-level == 'debug' && '--with-debug-level=fastdebug' || '' }}
128 --with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
129 --with-boot-jdk=${{ steps.bootjdk.outputs.path }}
130 --with-jtreg=${{ steps.jtreg.outputs.path }}
131 --with-gtest=${{ steps.gtest.outputs.path }}
132 --with-zlib=system
133 --with-jmod-compress=zip-1
134 --disable-jvm-feature-shenandoahgc
135 ${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
136 echo "Dumping config.log:" &&
137 cat config.log &&
138 exit 1)
139
140 - name: 'Build'
141 id: build
142 uses: ./.github/actions/do-build
143 with:
144 make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
145 platform: ${{ inputs.platform }}
146 debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
147 if: ${{ inputs.dry-run == false }}
148
149 - name: 'Upload bundles'
150 uses: ./.github/actions/upload-bundles
151 with:
152 platform: ${{ inputs.platform }}
153 debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
154 bundle-suffix: ${{ inputs.bundle-suffix }}
|