fix: upgrade 20.04 runners to 22.04 (fix for ICC, NVHPC) (#5621)

* Upgrade the deprecated 20.04 runners to 22.04 (ICC, NVHPC)

* fix ICC compile error

---------

Co-authored-by: Bryn Lloyd <12702862+dyollb@users.noreply.github.com>
This commit is contained in:
Bryn Lloyd
2025-04-16 14:13:23 +02:00
committed by GitHub
parent 223e2e9da2
commit 5c498583cc
2 changed files with 3 additions and 3 deletions

View File

@@ -432,7 +432,7 @@ jobs:
# Testing on Ubuntu + NVHPC (previous PGI) compilers, which seems to require more workarounds
ubuntu-nvhpc7:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: "🐍 3 • NVHPC 23.5 • C++17 • x64"
env:
@@ -550,7 +550,7 @@ jobs:
# Testing on ICC using the oneAPI apt repo
icc:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: "🐍 3 • ICC latest • x64"

View File

@@ -185,7 +185,7 @@ public:
using us_t = duration<int, std::micro>;
auto us = duration_cast<us_t>(src.time_since_epoch() % seconds(1));
if (us.count() < 0) {
us += seconds(1);
us += duration_cast<us_t>(seconds(1));
}
// Subtract microseconds BEFORE `system_clock::to_time_t`, because: