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
4 changes: 4 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,9 @@ jobs:
platform: arm64-darwin
- os: windows-latest
platform: x64-mingw-ucrt
- os: windows-11-arm
platform: aarch64-mingw-ucrt
ruby: 3.4
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
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` (requires: ruby >= 3.4)
- `arm-linux-gnu` (requires: glibc >= 2.29)
- `arm-linux-musl`
- `arm64-darwin`
Expand Down
8 changes: 7 additions & 1 deletion bin/test-gem-file-contents
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ Minitest::Reporters.use!([Minitest::Reporters::SpecReporter.new])

puts "Testing '#{gemfile}' (#{gemspec.platform})"
describe File.basename(gemfile) do
let(:supported_ruby_versions) { ["3.1", "3.2", "3.3", "3.4"] }
let(:supported_ruby_versions) do
if gemspec.platform.to_s == "aarch64-mingw-ucrt"
["3.4"]
else
["3.1", "3.2", "3.3", "3.4"]
end
end

describe "setup" do
it "gemfile contains some files" do
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 (native or cross-compilation)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an upstream fix pending for this? Is it already in a rubygems release (in which case could we instead pin the required version for this architecture)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question! i need to check that. it is possible this is already corrected, or the change actually needs proposing. i haven’t dug too far as this was sufficient for my needs.

i’ll report back

if 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
Loading