Skip to content

Commit

Permalink
Not using bundler cache in GHA because of Rice build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Dec 16, 2023
1 parent b7ff2c9 commit 53f716a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/rake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler: ${{ env.BUNDLER_VER }}
bundler-cache: true
# Rice gem has issues with bundler cache
# more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126
# but it is not the only issue
bundler-cache: false

- name: Bundle
run: bundle install --jobs 4 --retry 3

- name: Process cache
uses: actions/cache@v3
Expand Down Expand Up @@ -98,10 +104,9 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@master
with:
ruby-version: '3.0'
# bundler-cache: true important to not use cache because it leads to "cannot find -lrice"
# more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126
ruby-version: '3.1'
bundler: ${{ env.BUNDLER_VER }}
bundler-cache: false

- name: Bundle
run: bundle install --jobs 4 --retry 3
Expand Down Expand Up @@ -130,9 +135,8 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@master
with:
ruby-version: '3.0'
# bundler-cache: true important to not use cache because it leads to "cannot find -lrice"
# more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126
ruby-version: '3.1'
bundler-cache: false
bundler: ${{ env.BUNDLER_VER }}

- name: Bundle
Expand Down
1 change: 0 additions & 1 deletion lib/expressir/express/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def self.from_file(file, skip_references: nil, include_source: nil)
# so in this class we keep those C++ structure marked for GC so they are not freed
@parser = ::ExpressParser::ParserExt.new(file.to_s)
@parse_tree = @parser.syntax()

@visitor = Visitor.new(@parser.tokens, include_source: include_source)
@repository = @visitor.visit(@parse_tree)

Expand Down

0 comments on commit 53f716a

Please sign in to comment.