Skip to content

Commit

Permalink
Another try (try every env var) for actions/runner-images#9937
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed May 28, 2024
1 parent b7daec5 commit 1e8370b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions builders/ubuntu-python-builder.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ class UbuntuPythonBuilder : NixPythonBuilder {

$orig_needrestart_ui = $env:NEEDRESTART_UI
$env:NEEDRESTART_UI = "NeedRestart::UI::Debconf"

$orig_needrestart_mode = $env:NEEDRESTART_MODE
$env:NEEDRESTART_MODE = "l" # l(ist)-only

$orig_needrestart_suspend = $env:NEEDRESTART_SUSPEND
$env:NEEDRESTART_SUSPEND = "y"
### Install dependent packages
@(
"make",
Expand All @@ -82,6 +88,8 @@ class UbuntuPythonBuilder : NixPythonBuilder {
Execute-Command -Command "sudo apt install -y $_"
}
$env:NEEDRESTART_UI = $orig_needrestart_ui
$env:NEEDRESTART_MODE = $orig_needrestart_mode
$env:NEEDRESTART_SUSPEND = $orig_needrestart_suspend

### On Ubuntu-1804, libgdbm-compat-dev has older modules that are no longer in libgdbm-dev
Execute-Command -Command "sudo apt install -y libgdbm-compat-dev"
Expand Down

0 comments on commit 1e8370b

Please sign in to comment.