Skip to content

Update GHA linux runners to Ubuntu 20 - #11627

Merged
Nir-Az merged 2 commits into
realsenseai:developmentfrom
Nir-Az:update_gha_ubuntu
Mar 30, 2023
Merged

Nir-Az merged 2 commits into
realsenseai:developmentfrom
Nir-Az:update_gha_ubuntu

Conversation

@Nir-Az

@Nir-Az Nir-Az commented Mar 28, 2023 •

Copy link
Copy Markdown
Collaborator

GHA deprecate Ubuntu 18 runners,
We update the CI to use Ubuntu 20 runners

See https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/

When I used the default compiler (GCC 9.5) it used lto (link time optimization) and it failed on an internal error.

So I forced it to use GCC 7 which compile.

@Nir-Az
Nir-Az requested a review from OhadMeir March 28, 2023 11:06
@Nir-Az
Nir-Az force-pushed the update_gha_ubuntu branch from a26a837 to dd9b161 Compare March 28, 2023 11:19
@Nir-Az
Nir-Az marked this pull request as draft March 28, 2023 19:12
@Nir-Az
Nir-Az force-pushed the update_gha_ubuntu branch 5 times, most recently from 0ad4e57 to 4d8d1df Compare March 29, 2023 13:44
@Nir-Az
Nir-Az force-pushed the update_gha_ubuntu branch from 4d8d1df to 0de62a5 Compare March 29, 2023 14:25
@Nir-Az
Nir-Az marked this pull request as ready for review March 29, 2023 17:04
@Nir-Az

Nir-Az commented Mar 29, 2023

Copy link
Copy Markdown
Collaborator Author

@OhadMeir ready for review.
I will add myself a comment to add a comment for the lines that set the required GCC version

#sudo apt-get install gcc-5 g++-5;
#sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5;
sudo apt-get install libglfw3-dev libglfw3;
sudo apt-get install gcc-7 g++-7;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO Add comment on all places we force the GCC version with the reason

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

#--------------------------------------------------------------------------------
U18_SH_RSUSB_LiveTest: # Ubuntu 2018, Shared, Legacy live-tests
runs-on: ubuntu-18.04
U20_SH_RSUSB_LiveTest: # Ubuntu 2020, Shared, Legacy live-tests

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log file names should be updated. See example

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - Done

@OhadMeir OhadMeir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Nir-Az
Nir-Az merged commit d758c43 into realsenseai:development Mar 30, 2023
@Nir-Az
Nir-Az deleted the update_gha_ubuntu branch September 30, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants