Temporarily do not support Ruby on Windows due to difficulty

This commit is contained in:
Wilson Lin 2020-01-19 23:24:54 +11:00
parent 024e6aada0
commit af190bbbf0
2 changed files with 8 additions and 18 deletions

View File

@ -10,27 +10,22 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, macos-latest]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
NAME: linux NAME: linux
FILE: 'libhyperbuild_ruby_lib.so' FILE: 'libhyperbuild_ruby_lib.so'
- os: windows-latest
NAME: windows
FILE: 'hyperbuild_ruby_lib.dll'
- os: macos-latest - os: macos-latest
NAME: macos NAME: macos
FILE: 'libhyperbuild_ruby_lib.dylib' FILE: 'libhyperbuild_ruby_lib.dylib'
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Get version - name: Set up Ruby (Linux)
id: version if: runner.os == 'Linux'
shell: bash run: sudo apt install -y ruby2.5 ruby2.5-dev
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - name: Set up Ruby (macOS)
- name: Set up Ruby if: runner.os == 'macOS'
uses: actions/setup-ruby@v1 run: brew install ruby@2.5
with:
ruby-version: '2.5'
- name: Set up Rust - name: Set up Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -58,11 +53,6 @@ jobs:
uses: actions/setup-ruby@v1 uses: actions/setup-ruby@v1
with: with:
ruby-version: '2.5' ruby-version: '2.5'
- name: Download Windows built library
uses: actions/download-artifact@v1
with:
name: windows
path: ruby/lib/windows
- name: Download Linux built library - name: Download Linux built library
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:

View File

@ -143,7 +143,7 @@ minified = hyperbuild.minify("<p> Hello, world! </p>")
<details> <details>
<summary><strong>Ruby</strong></summary> <summary><strong>Ruby</strong></summary>
hyperbuild is available as a [native module](https://github.com/danielpclark/rutie), and supports Ruby versions 2.5 and higher. hyperbuild is available as a [native module](https://github.com/danielpclark/rutie) for macOS and Linux, and supports Ruby versions 2.5 and higher.
##### Get ##### Get