Skip to content

Commit

Permalink
CI: Install libffi which matches running arch (#905)
Browse files Browse the repository at this point in the history
* CI: Install libffi which matches running arch

This is because rubyinstaller-head switched to MINGW-UCRT, so the package prefix is
  mingw-w64-ucrt-x86_64
instead of
  mingw-w64-x86_64

* fixup
  • Loading branch information
larskanis committed Jun 19, 2021
1 parent 931efbe commit 1880a71
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -16,10 +16,12 @@ jobs:
with:
ruby-version: 2.7

- run: brew install automake libffi pkg-config
if: matrix.os == 'macos'
- run: ridk exec pacman --sync --refresh --needed --noconfirm mingw-w64-x86_64-libffi
if: matrix.os == 'windows' && matrix.extconfopts == '--enable-system-libffi'
- if: matrix.os == 'macos'
run: brew install automake libffi pkg-config

- if: matrix.os == 'windows' && matrix.extconfopts == '--enable-system-libffi'
shell: cmd
run: ridk exec sh -c "pacman --sync --refresh --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-libffi"

- run: bundle install
- run: bundle exec rake libffi
Expand Down

0 comments on commit 1880a71

Please sign in to comment.