[github-actions] use ubuntu-20.04 for github actions (#5871)

This commit update Github Actions workflows to use ubuntu 20.04
whenever applicable.

- Change ubuntu-latest to ubuntu-20.04 to cleanup the annotations:
  Ubuntu-latest workflows will use Ubuntu-20.04 soon. For more
  details, see
  https://github.com/actions/virtual-environments/issues/1816

- Change ubuntu-18.04 to ubuntu-20.04 wherever ubuntu-20.04 works.
  - Fixed a compile issue in tests/unit/test_link_quality.cpp on
    ubuntu-20.04
  - Can not get Simulation/expects work on ubuntu 20.04 due to unknown
    issue. Leave for further enhancement.
This commit is contained in:
Simon Lin
2020-11-30 07:34:33 -08:00
committed by GitHub
parent 9a0f973530
commit 18b82fdef5
10 changed files with 42 additions and 42 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ void TestRssAveraging(void)
rss = GetRandomRss();
IgnoreError(rssAverager.Add(rss));
sum += rss;
mean = static_cast<double>(sum) / j;
mean = static_cast<double>(sum) / static_cast<double>(j);
VerifyOrQuit(ABS(rssAverager.GetAverage() - mean) < 1, "Average does not match the arithmetic mean!");
VerifyRawRssValue(rssAverager);
printf("AddRss(%4d) sum=%-5d, mean=%-8.2f RssAverager=", rss, sum, mean);