Skip to content

Commit

Permalink
ci: test-gem-build detects snapshot builds
Browse files Browse the repository at this point in the history
and uses the edge version of the gem as well
  • Loading branch information
flavorjones committed Dec 10, 2024
1 parent 4f49471 commit e015616
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/_cruby_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- "x86_64-darwin"
- "x86_64-linux"
runs-on: ubuntu-latest
env:
RCD_VERSION: ${{ inputs.rcd_image_version }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions scripts/test-gem-build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ set -u -x
# avoid the pernicious "fatal: detected dubious ownership in repository" errors
git config --global --add safe.directory $(realpath $(dirname $0)/..)

# RCD_VERSION is an env var that should be set in CI
if [[ "${RCD_VERSION:-}" = "snapshot" ]] ; then
bundle remove rake-compiler-dock
bundle add rake-compiler-dock --github rake-compiler/rake-compiler-dock --branch main --skip-install
fi

bundle
bundle show --paths

bundle exec rake set-version-to-timestamp

Expand Down

0 comments on commit e015616

Please sign in to comment.