mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Fix build for older Ruby versions
This commit is contained in:
parent
992595929b
commit
1638f0b1b7
1 changed files with 4 additions and 3 deletions
|
@ -24,14 +24,14 @@ build:
|
||||||
ruby-lang.org: ^3 # ruby requires ruby to build
|
ruby-lang.org: ^3 # ruby requires ruby to build
|
||||||
# ^^ only linux because we got issues on darwin currently and darwin provides ruby (for now)
|
# ^^ only linux because we got issues on darwin currently and darwin provides ruby (for now)
|
||||||
script:
|
script:
|
||||||
- patch -p1 < props/mkconfig.rb.diff
|
- patch -p1 -F5 < props/mkconfig.rb.diff
|
||||||
|
|
||||||
- ./configure $ARGS
|
- ./configure $ARGS
|
||||||
|
|
||||||
- make --jobs {{hw.concurrency}} install
|
- make --jobs {{hw.concurrency}} install
|
||||||
|
|
||||||
# we provide these as `rubygems.org`
|
# we provide these as `rubygems.org`
|
||||||
- run: rm bundle bundler gem
|
- run: rm -f bundle bundler gem
|
||||||
working-directory: ${{prefix}}/bin
|
working-directory: ${{prefix}}/bin
|
||||||
|
|
||||||
- fix-shebangs.ts ${{prefix}}/bin/*
|
- fix-shebangs.ts ${{prefix}}/bin/*
|
||||||
|
@ -48,7 +48,7 @@ build:
|
||||||
if test -d $x; then
|
if test -d $x; then
|
||||||
rm -rf $x
|
rm -rf $x
|
||||||
else
|
else
|
||||||
rm $x
|
rm -f $x
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -rf ../gems/3.2.0/gems/bundler-*.*.*
|
rm -rf ../gems/3.2.0/gems/bundler-*.*.*
|
||||||
|
@ -123,6 +123,7 @@ test:
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
ruby --yjit $FIXTURE
|
ruby --yjit $FIXTURE
|
||||||
|
if: ^3
|
||||||
fixture:
|
fixture:
|
||||||
content: |
|
content: |
|
||||||
def fib(n)
|
def fib(n)
|
||||||
|
|
Loading…
Reference in a new issue