Merge pull request #22 from fluent-plugins-nursery/release-0.3.4 #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windows | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
ruby: | ||
- "3.2" | ||
- "3.1" | ||
include: | ||
- ruby: "3.0.3" | ||
# On Ruby 3.0, we need to use fiddle 1.0.8 or later to retrieve correct | ||
# error code. In addition, we have to specify the path of fiddle by RUBYLIB | ||
# because RubyInstaller loads Ruby's bundled fiddle before initializing gem. | ||
# See also: | ||
# * https://github.com/ruby/fiddle/issues/72 | ||
# * https://bugs.ruby-lang.org/issues/17813 | ||
# * https://github.com/oneclick/rubyinstaller2/blob/8225034c22152d8195bc0aabc42a956c79d6c712/lib/ruby_installer/build/dll_directory.rb | ||
ruby-lib-opt: RUBYLIB=%RUNNER_TOOL_CACHE%/Ruby/3.0.3/x64/lib/ruby/gems/3.0.0/gems/fiddle-1.1.0/lib | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install dependencies | ||
run: | | ||
ridk enable | ||
pacman -Sy --noconfirm mingw-w64-x86_64-libmaxminddb | ||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler: latest | ||
bundler-cache: true | ||
- name: Check Ruby version | ||
run: | | ||
ruby -v | ||
- name: Add Fiddle 1.1.0 | ||
if: ${{ matrix.ruby == "3.0.3" }} | ||
Check failure on line 43 in .github/workflows/windows.yml
|
||
run: gem install fiddle --version 1.1.0 | ||
- name: Build | ||
run: | | ||
ridk enable | ||
bundle exec rake compile | ||
- name: Run test | ||
run: | | ||
ridk enable | ||
bundle exec rake test |