Skip to content

Commit 1ca1d2f

Browse files
authored
Merge pull request #536 from MSP-Greg/actions-3.1-win2022
Update Psych::VERSION to 4.0.4.dev, Add Ruby 3.1 & windows-2022 to CI
2 parents 530b8a5 + 2fa5e19 commit 1ca1d2f

4 files changed

Lines changed: 14 additions & 23 deletions

File tree

.github/workflows/macos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ jobs:
2121
run: bundle install
2222
- name: Run test
2323
run: rake
24+
- name: Install gem
25+
run: rake install
26+
if: ${{ matrix.ruby != 'head' }}

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
run: rake
2424
- name: Install gem
2525
run: rake install
26-
if: ${{ matrix.ruby != 'head' && matrix.ruby != '3.1' }}
26+
if: ${{ matrix.ruby != 'head' }}

.github/workflows/windows.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,25 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: windows-latest
7+
runs-on: ${{ matrix.os }}
88
strategy:
99
fail-fast: false
1010
matrix:
11-
ruby: [ mingw, mswin, 3.1, "3.0", 2.7, 2.6, 2.5, 2.4 ]
11+
ruby: [ ucrt, mingw, mswin, 3.1, "3.0", 2.7, 2.6, 2.5, 2.4 ]
12+
os: [ windows-latest ]
1213
steps:
1314
- uses: actions/checkout@v3
14-
- name: Install libraries with vcpkg
15-
id: vcpkg
16-
run: |
17-
vcpkg --triplet x64-windows install libyaml
18-
if: ${{ matrix.ruby == 'mswin' }}
19-
- name: link libraries
20-
run: |
21-
for %%I in (C:\vcpkg\installed\x64-windows\bin\*.dll) do (
22-
mklink %%~nxI %%I
23-
)
24-
if: ${{ steps.vcpkg.conclusion == 'success' }}
2515
- name: Set up Ruby
2616
uses: MSP-Greg/setup-ruby-pkgs@v1
2717
with:
2818
ruby-version: ${{ matrix.ruby }}
29-
mingw: _upgrade_ libyaml
19+
vcpkg: libyaml
3020
- name: Install dependencies
3121
run: bundle install
32-
- name: Compile
33-
run: rake compile -- --with-libyaml-dir=C:/vcpkg/installed/x64-windows
34-
if: ${{ matrix.ruby == 'mswin' }}
3522
- name: Run test
3623
run: rake
37-
38-
defaults:
39-
run:
40-
shell: cmd
24+
- name: Install gem
25+
run: rake install
26+
# use all possible head strings
27+
if: |
28+
!(contains('ucrt mingw mswin head', matrix.ruby))

lib/psych/versions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Psych
44
# The version of Psych you are using
5-
VERSION = '4.0.3'
5+
VERSION = '4.0.4.dev'
66

77
if RUBY_ENGINE == 'jruby'
88
DEFAULT_SNAKEYAML_VERSION = '1.28'.freeze

0 commit comments

Comments
 (0)