Skip to content

Commit 992c64a

Browse files
committed
Add CI test run on Windows on ARM64
1 parent 2b4d25c commit 992c64a

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,27 @@ jobs:
705705
- run: ./scripts/test-gem-install gems
706706
shell: bash
707707

708+
cruby-aarch64-mingw-ucrt-install:
709+
needs: ["cruby-package", "ruby_versions"]
710+
strategy:
711+
fail-fast: false
712+
matrix:
713+
ruby: ["3.4"]
714+
runs-on: windows-11-arm
715+
steps:
716+
- uses: actions/checkout@v4
717+
with:
718+
submodules: true
719+
- uses: ruby/setup-ruby@v1
720+
with:
721+
ruby-version: "${{matrix.ruby}}"
722+
- uses: actions/download-artifact@v4
723+
with:
724+
name: cruby-aarch64-mingw-ucrt-gem
725+
path: gems
726+
- run: ./scripts/test-gem-install gems
727+
shell: bash
728+
708729
jruby-package:
709730
needs: ["rcd_image_version"]
710731
runs-on: ubuntu-latest

misc/native.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ rubies:
1515
- "3.3"
1616
- "3.2"
1717
- "3.1"
18+
exclude:
19+
- platform: aarch64-mingw-ucrt
20+
ruby: "3.1"
21+
- platform: aarch64-mingw-ucrt
22+
ruby: "3.2"
23+
- platform: aarch64-mingw-ucrt
24+
ruby: "3.3"

scripts/test-gem-file-contents

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ describe File.basename(gemfile) do
7373
let(:native_config) { YAML.load_file(File.join(__dir__, "..", "misc", "native.yml")) }
7474

7575
let(:supported_ruby_versions) do
76-
native_config["rubies"]
76+
versions = native_config["rubies"]
77+
native_config["exclude"].each do |h|
78+
versions -= [h["ruby"]] if h["platform"] == gemspec.platform.to_s
79+
end
80+
versions
7781
end
7882

7983
describe "setup" do

0 commit comments

Comments
 (0)