Skip to content

Commit

Permalink
dep: update to rake-compiler-dock 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jan 13, 2023
1 parent ee6bf89 commit 40899cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/gem-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ on:
- '*'

jobs:
cache-tarball:
setup:
runs-on: ubuntu-latest
outputs:
rcd_image_version: ${{steps.rcd_image_version.outputs.rcd_image_version}}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand All @@ -29,9 +31,11 @@ jobs:
ruby-version: "3.1"
bundler-cache: true
- run: bundle exec ruby ./ext/sqlite3/extconf.rb --download-dependencies
- id: rcd_image_version
run: bundle exec ruby -e 'require "rake_compiler_dock"; puts "rcd_image_version=#{RakeCompilerDock::IMAGE_VERSION}"' >> $GITHUB_OUTPUT

cruby-package:
needs: ["cache-tarball"]
needs: ["setup"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -139,7 +143,7 @@ jobs:
ruby -rsqlite3 -e 'puts SQLite3::SQLITE_LOADED_VERSION'
cruby-native-package:
needs: ["cache-tarball"]
needs: ["setup"]
strategy:
fail-fast: false
matrix:
Expand All @@ -160,8 +164,7 @@ jobs:
path: ports/archives
key: ports-archives-tarball-${{hashFiles('ext/sqlite3/extconf.rb','dependencies.yml')}}
- env:
# DOCKER_IMAGE: "larskanis/rake-compiler-dock-mri-${{matrix.plat}}:1.2.1"
DOCKER_IMAGE: "ghcr.io/rake-compiler/rake-compiler-dock-snapshot:${{matrix.plat}}"
DOCKER_IMAGE: "ghcr.io/rake-compiler/rake-compiler-dock-image:${{needs.setup.outputs.rcd_image_version}}-mri-${{matrix.plat}}"
run: |
docker run --rm -v "$(pwd):/sqlite3" -w /sqlite3 ${DOCKER_IMAGE} \
./bin/test-gem-build gems ${{matrix.plat}}
Expand Down
2 changes: 1 addition & 1 deletion sqlite3.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Gem::Specification.new do |s|

s.add_development_dependency("minitest", "~> 5.15")
s.add_development_dependency("rake-compiler", "~> 1.2.0")
s.add_development_dependency("rake-compiler-dock", "~> 1.2.1")
s.add_development_dependency("rake-compiler-dock", "1.3.0")
s.add_development_dependency("rdoc", ">= 4.0", "< 7")
s.add_development_dependency("psych", "~> 4.0") # psych 5 doesn't build on some CI platforms yet

Expand Down

0 comments on commit 40899cd

Please sign in to comment.