Skip to content

Commit 3d8a570

Browse files
committed
ci: windows config for github actions
file copied from main@7df5d3c
1 parent 4b9bfe3 commit 3d8a570

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/windows.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# this is a work in progress!
2+
name: windows
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize]
9+
branches:
10+
- '*'
11+
12+
jobs:
13+
windows:
14+
name: "windows, sys: ${{ matrix.sys }}, ${{ matrix.ruby }}"
15+
16+
env:
17+
MAKEFLAGS: -j2
18+
19+
runs-on: windows-latest
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
sys: [ enable, disable ]
25+
ruby: [ "2.5", "2.6", "2.7", "3.0", "mingw" ]
26+
27+
steps:
28+
- name: configure git crlf on windows
29+
run: |
30+
git config --system core.autocrlf false
31+
git config --system core.eol lf
32+
- name: checkout
33+
uses: actions/checkout@v2
34+
- name: load Ruby and bundle install
35+
uses: MSP-Greg/setup-ruby-pkgs@v1
36+
with:
37+
ruby-version: ${{ matrix.ruby }}
38+
mingw: libxml2 libxslt
39+
bundler-cache: true
40+
- uses: actions/cache@v2
41+
if: matrix.sys == 'disable'
42+
with:
43+
path: ports/archives
44+
key: ${{ matrix.os }}-${{ matrix.ruby }}-tarballs-${{ hashFiles('**/dependencies.yml') }}
45+
restore-keys: ${{ matrix.os }}-${{ matrix.ruby }}-tarballs-
46+
- name: bundle exec rake compile
47+
run: |
48+
bundle exec rake compile -- --${{ matrix.sys }}-system-libraries
49+
- name: bundle exec rake test
50+
run: bundle exec rake test

0 commit comments

Comments
 (0)