I am facing this GObjectIntrospection::RepositoryError::TypelibNotFound: Typelib file for namespace 'Poppler' (any version) not found error when the GitHub's CI workflow runs and it always fails due to it. I tried adding glib2 and gobject-introspection gems as well, but nothing works for me. I already have poppler gem in my gemfile. I am using aws-sdk-s3 gem for uploading the files to AWS using active storage and the poppler gem is being used to preview the files in the application. Locally everything is working fine for me.
I am using rails 6.1 and ruby 2.7.5.