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

Add GitHub Actions - Ubuntu, macOS, & Windows, Ruby 2.4 thru head, misc updates #83

Merged
merged 4 commits into from
Mar 14, 2024

Conversation

MSP-Greg
Copy link
Contributor

@MSP-Greg MSP-Greg commented Dec 6, 2023

See https://github.com/MSP-Greg/redcloth/actions/runs/7121117282

Some of the changes are 'general cleanup', some are Windows specific changes.

I believe this needs PR #82 merged for Windows CI to pass.

closes #63, closes #71, closes #81

@MSP-Greg MSP-Greg force-pushed the 00-windows-find-so-actions branch 3 times, most recently from 0b1260e to 62274f7 Compare December 7, 2023 02:06
@MSP-Greg
Copy link
Contributor Author

MSP-Greg commented Dec 7, 2023

As mentioned in #82, this started this morning, and I now actually looked at other PR's and issues. Added 'co-author' both here and in #82, and also added all the issues and pr's closed by them...

PR #74 should also be merged. Haven't looked at the others.

@MSP-Greg
Copy link
Contributor Author

MSP-Greg commented Dec 7, 2023

@digitalmoksha @heliocola

Sorry for the ping. I forgot that I was a collaborator here. I am busy enough with other OSS, and I don't know Textile docs.

So, I'm not sure if I can help with real code issues here, but the infrastructure things (build scripts, CI, etc) I can help with.

I think #74, #82, and this PR can be merged, and they'll give a good start to updating things, along with CI. I haven't worked with any CI going back before Ruby 2.4 for a while. I know Windows is really a PITA, not sure about macOS or Ubuntu. I did not add a
required_ruby_version to the gemspec. Also, deleted the rvm stuff here.

So, wondering if you have any opinions...

@MSP-Greg
Copy link
Contributor Author

MSP-Greg commented Dec 7, 2023

Added Ruby 2.2 & 2.3 on Ubuntu & macOS. All four jobs passed.

@heliocola
Copy link
Collaborator

Hi there @MSP-Greg . Thank you for submitting this PR.
I've just merged #81 that was queued up before yours.

Can you please sync your branch with latest master?

@heliocola heliocola mentioned this pull request Jan 12, 2024
Copy link
Collaborator

@heliocola heliocola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MSP-Greg : thanks again for sending this PR.
Please take a look at my comments.

@@ -1,81 +0,0 @@
require 'rvm'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MSP-Greg : can you please revert this change?
I still used this one when I released the last version of the gem.

I want to do a clean up as well, but not in the scope of this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the current file, which was last updated in Apr-2016...

RVM_RUBIES = ['ruby-1.8.6-p398', 'ruby-1.9.1-p243', 'ruby-1.9.2-p136', 'ruby-2.2.3p173']

I still used this one when I released the last version of the gem.

For testing? That's what CI is for. BTW, releases, maybe a sensible required_ruby_version in the gemspec? I'd suggest 2.4...

Copy link
Collaborator

@heliocola heliocola Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MSP-Greg : that is not for testing.

Is this change just for cleanup? Or this breaks your windows setup as well?

Gemfile Show resolved Hide resolved
redcloth.gemspec Outdated Show resolved Hide resolved
@digitalmoksha
Copy link

I don't see the actions running in this branch, so I pulled it into a fork. The Windows version is not building properly, but I think that's what #82 / #62 is supposed to fix.

Once this is rebased, I guess we can remove ruby.yml

Overall this looks pretty good!

@MSP-Greg
Copy link
Contributor Author

I don't see the actions running in this branch

New workflow files never run in upstream from a PR. They will run in forks, because they're normally running from a branch.

Rebased and added Ruby 3.3. to the workflow. I'll wait until #62 or #82 are merged, as CI will fail until then.

The Windows version is not building properly, but I think that's what #82 / #62 is supposed to fix.

Yes, and I've needed to patch that every time I install RedCloth on my Windows system. I have a lot of Rubies installed on all my systems. Both #62 and #82 are simple PR's. #62 did not delete the code related to 'pre-compiled' gems, #82 did.

@heliocola
Copy link
Collaborator

I'll wait until #62 or #82 are merged, as CI will fail until then.

@MSP-Greg : I've merged #62 , can you please check if that suffice for this PR?

I spent some time reading your comments in different issues to situate myself on all the windows issues you've had in the past years (way before I even knew this gem existed).

This comment caught my eye: #51 (comment)

It does look like there is a better way to do these extensions and nokogiri is a really good reference. Thank you for pointing that up, I will try to spend some time studying nokogiri's code.

As I've mentioned in a few other comments I am still trying to situate myself so I don't break anything... :-D

@digitalmoksha
Copy link

It does look like there is a better way to do these extensions and nokogiri is a really good reference. Thank you for pointing that up, I will try to spend some time studying nokogiri's code.

I think the common way of doing this is with https://github.com/rake-compiler/rake-compiler.

@MSP-Greg
Copy link
Contributor Author

rake-compiler is in the Gemfile and is being used.

@MSP-Greg MSP-Greg force-pushed the 00-windows-find-so-actions branch 2 times, most recently from b28315f to 1b57559 Compare January 20, 2024 00:35
@MSP-Greg
Copy link
Contributor Author

I just rebased, added Ruby 3.3, and made use of a new feature in setup-ruby.

All passed, see https://github.com/MSP-Greg/redcloth/actions/runs/7590837155/job/20678021321

Obviously, it takes longer than the current CI, but it tests all platforms. Note there are some warnings thrown in the compile step...

@heliocola
Copy link
Collaborator

Thank you @MSP-Greg .

I will look further in the gem release process and perhaps work on a clean up PR that I've been planning.
I was trying to avoid having to look into that before closing these issues, but perhaps is better that I work on it first.

@heliocola heliocola removed their assignment Mar 14, 2024
@heliocola heliocola merged commit cbcce71 into jgarber:master Mar 14, 2024
39 checks passed
@MSP-Greg MSP-Greg deleted the 00-windows-find-so-actions branch March 14, 2024 14:37
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.

Ruby 3 in CI? Ragel on Windows needs ragel directory to be included
3 participants