tag:help.appveyor.com,2012-11-13:/discussions/questions/3793-sample-appveyoryml-for-ruby-c-extensionAppVeyor: Discussion 2018-10-19T08:18:20Ztag:help.appveyor.com,2012-11-13:Comment/424890962017-05-04T03:41:02Z2017-05-04T03:41:02ZSample appveyor.yml for Ruby C extension<div><p>Hi Peter,</p>
<p>Please try <code>C:\Ruby23\DevKit\bin</code> or <code>C:\Ruby23-x64\DevKit\bin</code> folders.</p>
<p>Note that you can check software installed on build worker <a href="https://www.appveyor.com/docs/build-environment/#pre-installed-software">here</a> and also connect to build worker with <a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">RDP</a> to look closer.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/424890962017-05-04T15:37:00Z2017-05-04T15:37:00ZSample appveyor.yml for Ruby C extension<div><p>Thanks, that got me further but no success on the compiler. If you are willing to offer more advice here is what I have so far for <a href="https://ci.appveyor.com/project/ohler55/oj">https://ci.appveyor.com/project/ohler55/oj</a>.</p>
<p>version: 1.0.{build}-{branch}</p>
<p>image: Visual Studio 2015</p>
<p>environment:<br>
APPVEYOR_RDP_PASSWORD: fixm3-wtf RUBY_VERSION: 23-x64 PATH: C:\Ruby%RUBY_VERSION%\bin;C:\Ruby23-x64\DevKit\bin;C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1;%PATH%</p>
<p>build: off</p>
<p>before_build:<br>
- ruby -v - make -v</p>
<p>build_script:<br>
- cd C:\projects\oj\ext\oj - ruby extconf.rb - make</p></div>petertag:help.appveyor.com,2012-11-13:Comment/424890962017-05-04T23:42:31Z2017-05-04T23:42:31ZSample appveyor.yml for Ruby C extension<div><p>I was able to make it work with this path in my fork:<br></p>
<pre>
<code>PATH: c:\Ruby%RUBY_VERSION%\DevKit\mingw\bin;C:\Ruby%RUBY_VERSION%\bin;C:\Ruby%RUBY_VERSION%\DevKit\bin;C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1;%PATH%</code>
</pre>
adding <code>mingw\bin</code> helps it to find way to <code>x86_64-w64-mingw32-gcc.exe</code>
<p>Thanks!</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/424890962017-05-05T14:24:10Z2017-05-05T14:24:10ZSample appveyor.yml for Ruby C extension<div><p>Awesome! It works. Time to get the AppVeyor badge set up.</p></div>peter