Skip to content

Commit 2df3150

Browse files
Merge pull request #166 from hiroyuki-sato/topic/gix-github-actions
Fix GitHub Actions
2 parents 61fc3db + 1bad5d8 commit 2df3150

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

.github/workflows/check.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
strategy:
1010
matrix:
1111
jruby_version:
12-
- 9.3.10.0
13-
- 9.4.2.0
12+
- 9.3.15.0
13+
- 9.4.8.0
1414
fail-fast: false
1515
steps:
1616
- uses: actions/checkout@v4
@@ -19,24 +19,15 @@ jobs:
1919
with:
2020
java-version: 8
2121
distribution: "temurin"
22-
- uses: ruby/setup-ruby@v1
23-
with:
24-
ruby-version: 'jruby-${{ matrix.jruby_version }}'
25-
bundler-cache: true
26-
- name: show ruby version
27-
run: ruby -v
28-
- name: bundle install
29-
run: bundle install
22+
- name: download jruby
23+
run: "curl -L -o jruby.jar https://repo1.maven.org/maven2/org/jruby/jruby-complete/${{ matrix.jruby_version }}/jruby-complete-${{ matrix.jruby_version }}.jar"
3024
#
31-
# This step avoids the following error in the JRuby 9.4 test.
25+
# For avoiding permission denied. install gems into `gems` directory
3226
#
33-
# Gem::LoadError: You have already activated rake 13.0.6,
34-
# but your Gemfile requires rake 13.1.0. Prepending
35-
# `bundle exec` to your command may solve this.
36-
#
37-
- name: install rake 13.1.0
38-
run: gem install rake -v 13.1.0
27+
- name: bundle install
28+
run: "env GEM_HOME=gems java -jar jruby.jar -S bundle install"
29+
3930
- name: install embulk.jar
40-
run: "curl -L -o embulk.jar https://github.com/embulk/embulk/releases/download/v0.10.49/embulk-0.10.49.jar"
31+
run: "curl -L -o embulk.jar https://github.com/embulk/embulk/releases/download/v0.11.4/embulk-0.11.4.jar"
4132
- name: rake test
42-
run: bundle exec env RUBYOPT="-r ./embulk.jar" rake test
33+
run: 'env GEM_HOME=gems RUBYOPT="-r ./embulk.jar -r rubygems" java -jar jruby.jar -S bundle exec rake test'

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org/'
22

33
gemspec
4-
gem 'embulk', '= 0.10.49'
4+
gem 'embulk', '= 0.11.4'
55
gem 'embulk-parser-none'
66
gem 'embulk-parser-jsonl'
77
gem 'pry-nav'

0 commit comments

Comments
 (0)