Fix build error on Windows with HEAD #178
Workflow file for this run
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: CI on Windows | |
on: [push,pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- name: Run the default task | |
run: | | |
# Windows's cmake can't handle long path over 260 characters. | |
# It could not be avoided by CMAKE_OBJECT_PATH_MAX configuration. | |
# To avoid this, it copy the repository to short directry name. | |
Copy-Item -Path $PWD.Path -Destination /cm -Recurse | |
cd /cm | |
gem install bundler -v 2.2.26 | |
ridk exec bundle install | |
ridk exec bundle exec rake | |
# Clean up | |
cd / | |
Remove-Item -Path /cm -Recurse -Force |