Skip to content

Commit 3ab9fea

Browse files
committed
ci windows: support for MSYS2 environments
1 parent f55852f commit 3ab9fea

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,46 @@ jobs:
6060
- name: Test
6161
run: |
6262
bundle exec rake
63+
64+
windows-msys2:
65+
name: Windows ${{ matrix.msystem }}
66+
runs-on: ${{ matrix.runner }}
67+
timeout-minutes: 10
68+
strategy:
69+
fail-fast: false
70+
matrix:
71+
include:
72+
- msystem: CLANG64
73+
package-prefix: mingw-w64-clang-x86_64
74+
runner: windows-latest
75+
- msystem: CLANGARM64
76+
package-prefix: mingw-w64-clang-aarch64
77+
runner: windows-11-arm
78+
- msystem: MINGW32
79+
package-prefix: mingw-w64-i686
80+
runner: windows-latest
81+
- msystem: MINGW64
82+
package-prefix: mingw-w64-x86_64
83+
runner: windows-latest
84+
- msystem: UCRT64
85+
package-prefix: mingw-w64-ucrt-x86_64
86+
runner: windows-latest
87+
steps:
88+
- uses: actions/checkout@v6
89+
- uses: msys2/setup-msys2@v2
90+
with:
91+
msystem: ${{ matrix.msystem }}
92+
update: true
93+
install: >-
94+
base-devel
95+
${{ matrix.package-prefix }}-cairo
96+
${{ matrix.package-prefix }}-ruby
97+
${{ matrix.package-prefix }}-toolchain
98+
- name: Install dependencies
99+
shell: msys2 {0}
100+
run: |
101+
bundle install
102+
- name: Test
103+
shell: msys2 {0}
104+
run: |
105+
bundle exec rake

0 commit comments

Comments
 (0)