Repository navigation
Update Actions #432
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 Actions #432
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,20 +8,22 @@ jobs: | |
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| ruby: [ '2.6.x', '2.5.x', '2.4.x' ] | ||
| ruby: [ mingw, mswin, 2.7, 2.6, 2.5, 2.4 ] | ||
| steps: | ||
| - uses: actions/checkout@master | ||
| - name: Set up Ruby | ||
| uses: actions/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby }} | ||
| - name: Update MSYS2 | ||
| uses: MSP-Greg/msys2-action@master | ||
| with: | ||
| base: update | ||
| - name: Install dependencies | ||
| run: | | ||
| gem update --system --no-document --conservative | ||
| bundle install | ||
| - name: Run test | ||
| run: rake | ||
| - uses: actions/checkout@v2 | ||
| - name: Set up Ruby | ||
| uses: MSP-Greg/actions-ruby@v1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why don't you use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re 1., how about a I see you used
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm trying to deprecate msys2-action and replace it with actions-ruby, which I could rename setup-ruby. mswin build - ruby/ruby tests against it. So, as recently happened with ruby/openssl, mingw passed there, but when they pushed the changes to ruby/ruby, mswin failed. By having a mswin build available for CI, that doesn't need to happen. At present, mswin builds are not often used. But, I know of one company using an embedded Ruby based on RI2, and they're having issues with the fact that their app builds with VS 2019 and the RI2 builds use a different msvc runtime (the one used by MSYS2 tools). So, there is reason to build/test against mswin/msvc.
See below. I'm not sure about spec tests, they may run when it hits RI2, not sure. Simply put, my shit works, or, if it occasionally doesn't, it gets fixed quickly. ruby-loco has been used in CI for almost three years in a lot of repos. The one time I recall it breaking was over the RubyGems binstub issue, and I added tests for that. I also actively encourage repos to test with ruby master on all platforms, which benefits ruby/ruby... EDIT: FWIW, I use ruby-loco mingw every time I update https://msp-greg.github.io/, and any work I do on PR's I start with ruby-loco. I 'walk what I talk'...
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've given a few more thoughts about this.
I think it's good to use your action for fine control like testing on both mingw & mswin.
I think something with windows, mswin or mingw in the action name would be helpful to clarify it's meant for Ruby on Windows. Another
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re the name, how about 'setup-ruby-win'? I think that would be clear to most people. Re RubyInstaller vs ruby-loco mingw, I've set up ruby-loco to test against a master branch. All test suites are run against install, they're isolated (so all run), and logic is there to determine if any fail. The mswin build is currently building in a more traditional way (like ruby/ruby CI), but I'm converting it over to match the mingw build. A lot of repos have been using it for quite a while, including RubyGems. Off topic, but stepping back, should the Ruby organization support Ruby Windows binaries itself? Should the 'devkit' be a repo under ruby? Should ruby/ruby support dll manifests in Windows binaries? Etc, etc...
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'd be OK to add mingw/mswin builds built by ruby-loco in
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I filed oneclick/rubyinstaller2#169 |
||
| with: | ||
| ruby-version: ${{ matrix.ruby }} | ||
| base: update | ||
| - name: Install dependencies | ||
| run: bundle install | ||
| - name: Run test | ||
| if: matrix.ruby != 'mswin' | ||
| run: rake | ||
| - name: Run test | ||
| if: matrix.ruby == 'mswin' | ||
| shell: cmd | ||
| run: | | ||
| call "%VCVARS%" | ||
| rake | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation changes here make it harder to read the diff, could you keep the original indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could, but it was my impression that proper yaml should have array members indented...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm not sure if there is a recommendation on that, I think both styles were used in
.travis.ymlback then.I personally prefer the lesser indented variant, so it's only 4-spaces indented for steps (6 starts to feel quite deep already).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re indenting, not an issue I feel strongly about. But, since I changed the indents in
.github/workflows/ubuntu-jruby.yml, knowing the preference affects what I do with the merge conflict.My tired old eyes prefer the indented style...