Skip to content

Commit

Permalink
ci: use sh instead of bash on scripts run on alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Apr 15, 2024
1 parent 5c6335a commit 0f43d39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ jobs:
name: source-gem
path: gems
- run: ./bin/test-gem-install gems -- --${{ matrix.syslib }}-system-libraries ${{ matrix.compile_flags }}
shell: bash
shell: sh

build_native_gem:
needs: native_setup
Expand Down Expand Up @@ -339,7 +339,7 @@ jobs:
name: cruby-${{ matrix.platform }}-gem
path: gems
- run: ./bin/test-gem-install gems
shell: bash
shell: sh

cruby-x86_64-linux-musl-install:
needs: build_native_gem
Expand All @@ -363,7 +363,7 @@ jobs:
with:
name: cruby-x86_64-linux-gem
path: gems
- run: apk add bash build-base
- run: apk add build-base
- if: matrix.ruby == '3.0' # https://github.com/rake-compiler/rake-compiler/pull/236
run: gem update --system
- run: ./bin/test-gem-install ./gems
6 changes: 3 additions & 3 deletions bin/test-gem-install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env bash
#! /usr/bin/env sh
#
# run as part of CI
#
Expand All @@ -15,14 +15,14 @@ test -e /etc/os-release && cat /etc/os-release

set -e -x -u

pushd $GEMS_DIR
cd $GEMS_DIR

gemfile=$(ls *.gem | head -n1)
ls -l ${gemfile}
gem install --no-document ${gemfile} -- ${INSTALL_FLAGS}
gem list -d sqlite3

popd
cd ..

bundle install --local || bundle install

Expand Down

0 comments on commit 0f43d39

Please sign in to comment.