Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI to refresh apt packages before installing IRuby gem #367

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

kojix2
Copy link
Member

@kojix2 kojix2 commented Feb 16, 2025

IRuby automatically installs the required libzmq3-dev package based on the platform. It uses a Rakefile with native-package-installer to handle this.

iruby/ext/Rakefile

Lines 5 to 19 in c95d162

task :ensure_zeromq do
begin
require 'ffi-rzmq'
rescue LoadError
require 'native-package-installer'
unless NativePackageInstaller.install(arch_linux: 'zeromq',
debian: 'libzmq3-dev',
freebsd: 'libzmq4',
homebrew: 'zmq',
macports: 'zmq',
redhat: 'zeromq-devel')
raise 'Failed to install ZeroMQ'
end
end
end

Currently, many tests are failing because apt-get install shows a --fix-missing error. This happens when package lists are outdated.

https://github.com/SciRuby/iruby/actions/runs/13353020518

Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This issue is resolved by running apt update before installation.

      - name: Install IRuby gem
        run: |
          sudo apt update
          gem install pkg/*.gem

This ensures the package list is up to date and prevents installation failures.

@kojix2 kojix2 merged commit c6a8710 into SciRuby:master Feb 16, 2025
9 of 11 checks passed
@kojix2 kojix2 deleted the ci branch February 16, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant