Build Ruby-FFI instead of liquid on TruffleRuby.

This commit is contained in:
Fabio Niephaus 2022-01-21 13:16:50 +01:00
parent 0141e9fea8
commit 6d6c7fd57c
No known key found for this signature in database
GPG Key ID: F21CF5275F31DFD6

View File

@ -108,11 +108,14 @@ jobs:
javac HelloWorld.java
native-image HelloWorld
./helloworld
- name: Build Shopify/liquid with TruffleRuby
- name: Build Ruby-FFI with TruffleRuby
run: |
[[ $(which bundle) == *"graalvm"* ]] || exit 57
git clone --depth 1 https://github.com/Shopify/liquid.git
pushd liquid > /dev/null
bundle install --jobs=3 --retry=3 --path=vendor/bundle
# bundle exec rake (LIQUID C tests take very long to run)
git clone --depth 1 https://github.com/ffi/ffi.git
pushd ffi > /dev/null
# https://github.com/ffi/ffi/blob/447845cb3030194c79700c86fb388a12e6f81386/.github/workflows/ci.yml#L58-L62
bundle install
bundle exec rake libffi
bundle exec rake compile
bundle exec rake test
popd > /dev/null