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