Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ jobs:
platform:
- aarch64-linux-gnu
- aarch64-linux-musl
- aarch64-mingw-ucrt
- arm-linux-gnu
- arm-linux-musl
- arm64-darwin
Expand Down Expand Up @@ -342,6 +343,8 @@ jobs:
platform: arm64-darwin
- os: windows-latest
platform: x64-mingw-ucrt
- os: windows-11-arm
platform: aarch64-mingw-ucrt
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ group :test do
gem "ruby_memcheck", "3.0.1" if Gem::Platform.local.os == "linux"

gem "rake-compiler", "1.3.0"
gem "rake-compiler-dock", "1.9.1"
gem "rake-compiler-dock", "1.10.0"
end

group :development do
Expand Down
1 change: 1 addition & 0 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ In v2.0.0 and later, native (precompiled) gems are available for recent Ruby ver

- `aarch64-linux-gnu` (requires: glibc >= 2.29)
- `aarch64-linux-musl`
- `aarch64-mingw-ucrt`
- `arm-linux-gnu` (requires: glibc >= 2.29)
- `arm-linux-musl`
- `arm64-darwin`
Expand Down
8 changes: 8 additions & 0 deletions ext/sqlite3/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ def minimal_recipe
recipe.target = File.join(package_root_dir, "ports")
recipe.patch_files = Dir[File.join(package_root_dir, "patches", "*.patch")].sort
end

# Fix host triplet for Windows ARM64 cross-compilation
if cross_build? && RbConfig::CONFIG["target_os"].match?(/mingw/)
case RbConfig::CONFIG["arch"]
when /aarch64/
recipe.host = "aarch64-w64-mingw32"
end
end
end
end

Expand Down
1 change: 1 addition & 0 deletions rakelib/native.rake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ require "yaml"
cross_platforms = [
"aarch64-linux-gnu",
"aarch64-linux-musl",
"aarch64-mingw-ucrt",
"arm-linux-gnu",
"arm-linux-musl",
"x86-linux-gnu",
Expand Down