Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
Add Rust install for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Apr 21, 2022
1 parent f074ae8 commit c22422c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ jobs:
fail-fast: false
matrix:
include:
- ruby: 3.0.0-rc1
- ruby: 2.7
- ruby: 2.6
- ruby: 3.0.0
- ruby: 3.1.0
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test
- uses: actions/checkout@v2
- name: Install Rust
run: rustup update stable && rustup default stable
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
rubygems: 3.3.11
- run: bundle exec rake test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.bundle
target/
pkg/
tmp/
tmp/
.DS_Store
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
auto-correct (1.1.0)
rb_sys1 (>= 0.1.2)
rb_sys1 (~> 0.1, >= 0.1.3)

GEM
remote: https://rubygems.org/
Expand All @@ -21,7 +21,7 @@ GEM
rake (13.0.1)
rake-compiler (1.2.0)
rake
rb_sys1 (0.1.2)
rb_sys1 (0.1.3)
thread_safe (0.3.6)
tzinfo (1.2.6)
thread_safe (~> 0.1)
Expand Down
2 changes: 1 addition & 1 deletion auto-correct.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Gem::Specification.new do |s|

s.extensions = ["ext/autocorrect/extconf.rb"]

s.add_runtime_dependency "rb_sys1", "~> 0.1", ">= 0.1.2"
s.add_runtime_dependency "rb_sys1", "~> 0.1", ">= 0.1.3"
end

0 comments on commit c22422c

Please sign in to comment.