mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Roll forward to ruby 3.1 and remove patches (#1660)
Use ruby 3.1 vagrant main and latest release, dropping the current patching as these should now work with more recent rubies. Retain the current ruby-libvirt patch.
This commit is contained in:
5
.github/workflows/integration-tests.yml
vendored
5
.github/workflows/integration-tests.yml
vendored
@@ -11,6 +11,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.generate-matrix.outputs.matrix }}
|
matrix: ${{ steps.generate-matrix.outputs.matrix }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
|
||||||
|
VAGRANT_VERSION: v2.2.14
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
28
.github/workflows/unit-tests.yml
vendored
28
.github/workflows/unit-tests.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
# need to define one entry with a single entry for each of the options
|
# need to define one entry with a single entry for each of the options
|
||||||
# to allow include to expand the matrix correctly.
|
# to allow include to expand the matrix correctly.
|
||||||
ruby: [2.6.6]
|
ruby: [3.1]
|
||||||
vagrant: [main]
|
vagrant: [main]
|
||||||
allow_fail: [true]
|
allow_fail: [true]
|
||||||
include:
|
include:
|
||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
# above block is to ensure compatible with Ubuntu 20.04 vagrant package
|
# above block is to ensure compatible with Ubuntu 20.04 vagrant package
|
||||||
# although it uses 2.2.10 it is the earliest version that will install on
|
# although it uses 2.2.10 it is the earliest version that will install on
|
||||||
# ruby 2.7 without patching
|
# ruby 2.7 without patching
|
||||||
- ruby: 3.0.0
|
- ruby: 3.1
|
||||||
vagrant:
|
vagrant:
|
||||||
allow_fail: false
|
allow_fail: false
|
||||||
|
|
||||||
@@ -55,15 +55,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Clone vagrant for ruby 3.0 support
|
- name: Clone ruby-libvirt for ruby 3.1 support
|
||||||
if: ${{ matrix.ruby == '3.0.0' }}
|
if: ${{ startsWith(matrix.ruby, '3.1') }}
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
repository: hashicorp/vagrant
|
|
||||||
path: .deps/vagrant
|
|
||||||
ref: f7973f00edb9438d0b36085f210c80af71cfe5c5
|
|
||||||
- name: Clone ruby-libvirt for ruby 3.0 support
|
|
||||||
if: ${{ matrix.ruby == '3.0.0' }}
|
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: libvirt/libvirt-ruby
|
repository: libvirt/libvirt-ruby
|
||||||
@@ -90,18 +83,9 @@ jobs:
|
|||||||
- name: Ensure bundle uses https instead of insecure git
|
- name: Ensure bundle uses https instead of insecure git
|
||||||
run: |
|
run: |
|
||||||
git config --global url."https://github.com/".insteadOf git://github.com/
|
git config --global url."https://github.com/".insteadOf git://github.com/
|
||||||
- name: Handle additional ruby 3.0 setup
|
- name: Handle additional ruby 3.1 setup
|
||||||
if: ${{ matrix.ruby == '3.0.0' }}
|
if: ${{ startsWith(matrix.ruby, '3.1') }}
|
||||||
run: |
|
run: |
|
||||||
# ensure vagrant gemspec allows ruby 3.0
|
|
||||||
pushd .deps/vagrant/
|
|
||||||
# ensure main branch exists
|
|
||||||
git checkout -b main
|
|
||||||
sed -i -e 's@s.required_ruby_version.*=.*@s.required_ruby_version = "~> 3.0"@' vagrant.gemspec
|
|
||||||
popd
|
|
||||||
|
|
||||||
bundle config local.vagrant ${PWD}/.deps/vagrant/
|
|
||||||
|
|
||||||
# build gem of latest bindings that contain fix for ruby include path
|
# build gem of latest bindings that contain fix for ruby include path
|
||||||
pushd .deps/libvirt-ruby
|
pushd .deps/libvirt-ruby
|
||||||
rake gem
|
rake gem
|
||||||
|
|||||||
Reference in New Issue
Block a user