Skip to content

Commit bf72ddf

Browse files
committed
GitHubCI: fix all Linux issues about interactive installs
This error was spotted in linux22-vanilla--stockmono-only: ``` Setting up tzdata (2025b-0ubuntu0.22.04.1) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline Configuring tzdata ------------------ Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. 1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Legacy 2. America 5. Arctic 8. Europe 11. US 3. Antarctica 6. Asia 9. Indian 12. Etc context canceled Geographic area: ``` Which led to the job hang, and be cancelled hours later. Now we use the DEBIAN_FRONTEND= workaround everywhere to fix this.
1 parent 9a1991d commit bf72ddf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ jobs:
221221
with:
222222
submodules: false
223223
- name: install missing dependencies
224-
run: sudo apt install --yes fsharp nunit-console
224+
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes fsharp nunit-console
225225
- name: check mono version
226226
run: mono --version
227227
- name: configure
@@ -246,7 +246,7 @@ jobs:
246246
with:
247247
submodules: false
248248
- name: install missing dependencies
249-
run: sudo apt install --yes fsharp nunit-console
249+
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes fsharp nunit-console
250250
- name: install last version of mono (Microsoft APT repositories)
251251
run: sudo ./scripts/install_mono_from_microsoft_deb_packages.sh
252252
- name: check mono version
@@ -476,7 +476,7 @@ jobs:
476476
with:
477477
submodules: false
478478
- name: install missing dependencies
479-
run: sudo apt install --yes fsharp nunit-console
479+
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes fsharp nunit-console
480480
- name: check mono version
481481
run: mono --version
482482
- name: configure
@@ -499,7 +499,7 @@ jobs:
499499
steps:
500500
- uses: actions/checkout@v1
501501
- name: install missing dependencies
502-
run: sudo apt install --yes fsharp nunit-console
502+
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes fsharp nunit-console
503503
- name: install last version of mono (Microsoft APT repositories)
504504
run: sudo ./scripts/install_mono_from_microsoft_deb_packages.sh
505505
- name: check mono version
@@ -532,7 +532,7 @@ jobs:
532532
- name: install sudo
533533
run: apt update && apt install --yes sudo
534534
- name: install all dependencies
535-
run: sudo apt install --yes git make curl fsharp nunit-console
535+
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes git make curl fsharp nunit-console
536536

537537
# workaround for https://github.com/actions/runner/issues/2033
538538
- name: ownership workaround
@@ -568,7 +568,7 @@ jobs:
568568
- name: install sudo
569569
run: apt update && apt install --yes sudo
570570
- name: install all dependencies
571-
run: sudo apt install --yes git make curl fsharp nunit-console
571+
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes git make curl fsharp nunit-console
572572
- name: install last version of mono (Microsoft APT repositories)
573573
run: sudo ./scripts/install_mono_from_microsoft_deb_packages.sh
574574

@@ -625,7 +625,7 @@ jobs:
625625
which sudo 2>/dev/null || (apt update && apt install --yes sudo)
626626
sudo apt update
627627
628-
sudo apt install --yes git npm curl
628+
sudo DEBIAN_FRONTEND=noninteractive apt install --yes git npm curl
629629
sudo npm install --global n
630630
sudo n lts
631631
# workaround for https://github.com/actions/runner/issues/2033
@@ -684,5 +684,5 @@ jobs:
684684
SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }}
685685
run: |
686686
sudo apt update
687-
sudo apt install --yes fsharp
687+
sudo DEBIAN_FRONTEND=noninteractive apt install --yes fsharp
688688
./scripts/snap_release.sh

0 commit comments

Comments
 (0)