From b3bb0114394ebf1a81bbf4c3ca392a384d6634e9 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 3 Jun 2025 23:06:48 +0100 Subject: [PATCH] ci: install and use bash across the board The upcoming CI rework will hard depend on some bash constructs. While theoretically possible to make them dash compliant, I'm not sure it's worth the effort. Just install bash and carry on. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/362 Signed-off-by: Lucas De Marchi --- .github/actions/setup-os/setup-debian.sh | 1 + .github/actions/setup-os/setup-ubuntu.sh | 1 + .github/workflows/main.yml | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/.github/actions/setup-os/setup-debian.sh b/.github/actions/setup-os/setup-debian.sh index b8bf22e8..9e0349f1 100755 --- a/.github/actions/setup-os/setup-debian.sh +++ b/.github/actions/setup-os/setup-debian.sh @@ -17,6 +17,7 @@ fi apt-get update apt-get install --yes \ + bash \ build-essential \ clang \ gcc-multilib \ diff --git a/.github/actions/setup-os/setup-ubuntu.sh b/.github/actions/setup-os/setup-ubuntu.sh index fc1ba89d..1e98beb9 100755 --- a/.github/actions/setup-os/setup-ubuntu.sh +++ b/.github/actions/setup-os/setup-ubuntu.sh @@ -8,6 +8,7 @@ export DEBIAN_FRONTEND=noninteractive export TZ=Etc/UTC apt-get update apt-get install --yes \ + bash \ build-essential \ curl \ clang \ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f8039685..cfec1107 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,6 +16,10 @@ on: permissions: contents: read +defaults: + run: + shell: bash + jobs: build: env: -- 2.47.3