Skip to content

Commit

Permalink
Don't install secryst group if ruby < 2.7l
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP committed May 8, 2021
1 parent 3a37bf9 commit f4bff3e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/rake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,39 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
ruby: [ 2.7, 2.6, 2.5, 2.4 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
experimental: [ false ]
include:
- ruby: '3.0'
- ruby: 3.0
os: 'ubuntu-latest'
experimental: true
- ruby: '3.0'
- ruby: 3.0
os: 'windows-latest'
experimental: true
- ruby: '3.0'
- ruby: 3.0
os: 'macos-latest'
experimental: true

env:
BUNDLE_WITHOUT: "secryst"

steps:
- uses: actions/checkout@v2
with:
submodules: true

- uses: actions/setup-node@v2
with:
node-version: '15'

- if: matrix.os == 'macos-latest'
run: brew install automake autoconf

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: ./ruby

- run: bundle exec rake
- run: bundle exec rspec -f f
12 changes: 7 additions & 5 deletions ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ gem "rspec", "~> 3.0"

gem "interscript-maps", path: "../maps"

group :secryst do
if File.exist? "../../secryst"
gem "secryst", path: "../../secryst"
else
gem "secryst"
unless Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.7")
group :secryst do
if File.exist? "../../secryst"
gem "secryst", path: "../../secryst"
else
gem "secryst"
end
end
end

Expand Down
1 change: 1 addition & 0 deletions ruby/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
torch

0 comments on commit f4bff3e

Please sign in to comment.