8000 Add GitHub Actions by nobu · Pull Request #9 · ruby/mathn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add GitHub Actions #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions 22 .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: macos

on: [push, pull_request]

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
ruby: [ '2.7', '2.6', '2.5' ]
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Set up Bundler
run: gem install bundler --no-document
- name: Install dependencies
run: bundle install
- name: Run test
run: bundle exec rake
22 changes: 22 additions & 0 deletions .github/workflows/ubuntu.yml
8000
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ubuntu

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.7', '2.6', '2.5' ]
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Set up Bundler
run: gem install bundler --no-document
- name: Install dependencies
run: bundle install
- name: Run test
run: bundle exec rake
22 changes: 22 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: windows

on: [push, pull_request]

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
ruby: [ '2.7', '2.6', '2.5' ]
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Set up Bundler
run: gem install bundler --no-document
- name: Install dependencies
run: bundle install
- name: Run test
run: bundle exec rake
8 changes: 5 additions & 3 deletions mathn.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/ruby/mathn"
spec.license = "BSD-2-Clause"

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject do |f|
f.match(%r{\A(?:test|spec|features)/|\A\.(?:git|travis)})
end
end
spec.extensions = ["ext/mathn/complex/extconf.rb", "ext/mathn/rational/extconf.rb"]
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "cmath"
Expand Down
0