Skip to content

Commit

Permalink
Go back to using rack-compiler-dock to build gems
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Jul 16, 2023
1 parent 8000de9 commit 1db7935
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/precompiled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ jobs:
ruby -r re2 -e "puts RE2::Regexp.new('(\d+)').match(\"bob 123\")"
cruby-native-package:
needs: ["rcd_image_version"]
strategy:
fail-fast: false
matrix:
Expand All @@ -166,12 +167,13 @@ jobs:
with:
path: ports/archives
key: archives-ubuntu-${{hashFiles('ext/re2/extconf.rb')}}
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
bundler-cache: true
- run: ./bin/test-gem-build gems ${{matrix.plat}}
- uses: actions/upload-artifact@v2
- env:
DOCKER_IMAGE: "ghcr.io/rake-compiler/rake-compiler-dock-image:${{needs.rcd_image_version.outputs.rcd_image_version}}-mri-${{matrix.plat}}"
run: |
docker run --rm -v "$(pwd):/re2" -w /re2 \
${DOCKER_IMAGE} \
./scripts/test-gem-build gems ${{matrix.plat}}
- uses: actions/upload-artifact@v3
with:
name: "cruby-${{matrix.plat}}-gem"
path: gems
Expand Down Expand Up @@ -330,3 +332,20 @@ jobs:
name: cruby-x64-mingw-ucrt-gem
path: gems
- run: ./bin/test-gem-install gems

#
# SECTION the end-to-end gem installation tests
#
rcd_image_version:
runs-on: ubuntu-latest
outputs:
rcd_image_version: ${{steps.rcd_image_version.outputs.rcd_image_version}}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
bundler: latest
- id: rcd_image_version
run: bundle exec ruby -e 'require "rake_compiler_dock"; puts "rcd_image_version=#{RakeCompilerDock::IMAGE_VERSION}"' >> $GITHUB_OUTPUT

0 comments on commit 1db7935

Please sign in to comment.