RFR: 8256393: Github Actions build on Linux should define OS and GCC versions [v2]

Robin Westberg rwestberg at openjdk.java.net
Thu Nov 19 16:16:21 UTC 2020


On Mon, 16 Nov 2020 15:12:25 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

>> .github/workflows/submit.yml line 190:
>> 
>>> 188:         run: |
>>> 189:           sudo apt-get install libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
>>> 190:           sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
>> 
>> Maybe we should use apt-get functionality to install a specific version of packages? I'm not sure how relevant it is for the X and alsa libraries since they change very seldom, but perhaps for gcc, to get a specific point release of the compiler.
>
> Something along the lines of `sudo apt-get install gcc-10=10.2.0-5ubuntu1~20`, which I believe should match quite well the version used internally in the Oracle CI builds.

That sounds reasonable, I don't know how often these change in Ubuntu LTS, but can't hurt to be explicit here as well.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1225



More information about the build-dev mailing list