Skip to content

Commit

Permalink
Use sh rather than bash for CI script
Browse files Browse the repository at this point in the history
So we can run test-gem-install on both regular and Alpine Ruby images,
use a sh script rather than relying on bash.
  • Loading branch information
mudge committed Dec 16, 2024
1 parent 5e349fd commit 334d2da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ jobs:
docker run --rm -v "$(pwd):/re2" -w /re2 \
--platform=linux/arm64 \
ruby:${{ matrix.ruby }}-alpine \
sh -c "gem update --system && apk add bash && ./scripts/test-gem-install"
./scripts/test-gem-install
test-precompiled-arm-linux-gnu:
needs: "precompile-arm-linux-gnu"
Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
docker run --rm -v "$(pwd):/re2" -w /re2 \
--platform=linux/arm/v7 \
ruby:${{ matrix.ruby }}-alpine \
sh -c "gem update --system && apk add bash && ./scripts/test-gem-install"
./scripts/test-gem-install
test-precompiled-x86-linux-gnu:
needs: "precompile-x86-linux-gnu"
Expand Down Expand Up @@ -369,7 +369,7 @@ jobs:
docker run --rm -v "$(pwd):/re2" -w /re2 \
--platform=linux/386 \
ruby:${{ matrix.ruby }}-alpine \
sh -c "gem update --system && apk add bash && ./scripts/test-gem-install"
./scripts/test-gem-install
test-precompiled-x86_64-linux-gnu:
needs: "precompile-x86_64-linux-gnu"
Expand Down Expand Up @@ -407,8 +407,6 @@ jobs:
with:
name: cruby-x86_64-linux-musl-gem
path: pkg
- run: gem update --system
- run: apk add bash
- run: ./scripts/test-gem-install

test-precompiled-arm64-darwin:
Expand Down
2 changes: 1 addition & 1 deletion scripts/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

set -eu

Expand Down

0 comments on commit 334d2da

Please sign in to comment.