Skip to content

Commit

Permalink
Add macOS / Linux actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Jan 7, 2020
1 parent 63c6788 commit 00a65d2
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 6 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Linux

on: [push, pull_request]
jobs:
build:
name: >-
Linux | Ruby: ${{ matrix.ruby }}
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
ruby: ["2.4.x", "2.5.x", "2.6.x", "9.9.x"]
steps:
- name: repo checkout
uses: actions/checkout@v1
with:
fetch-depth: 10
- name: load ruby, update gcc
uses: MSP-Greg/actions-ruby@master
with:
ruby-version: ${{ matrix.ruby }}
base: update
- name: update RubyGems, Bundler
run: gem update --system --no-document --conservative
- name: bundle install
run: bundle install --jobs=3 --retry=3
- name: test
run: |
ruby -v
bundle exec rake
env:
CI: true
32 changes: 32 additions & 0 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: macOS

on: [push, pull_request]
jobs:
build:
name: >-
macOS | Ruby: ${{ matrix.ruby }}
runs-on: "macos-latest"
strategy:
fail-fast: false
matrix:
ruby: ["2.4.x", "2.5.x", "2.6.x", "9.9.x"]
steps:
- name: repo checkout
uses: actions/checkout@v1
with:
fetch-depth: 10
- name: load ruby, update gcc
uses: MSP-Greg/actions-ruby@master
with:
ruby-version: ${{ matrix.ruby }}
base: update
- name: update RubyGems, Bundler
run: gem update --system --no-document --conservative
- name: bundle install
run: bundle install --jobs=3 --retry=3
- name: test
run: |
ruby -v
bundle exec rake
env:
CI: true
12 changes: 6 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on: [push, pull_request]
jobs:
build:
name: >-
windows-latest Ruby: ${{ matrix.ruby }}
runs-on: 'windows-latest'
Windows | Ruby: ${{ matrix.ruby }}
runs-on: "windows-latest"
strategy:
fail-fast: false
matrix:
ruby: [ '2.4.x', '2.5.x', '2.6.x', '9.9.x' ]
ruby: ["2.4.x", "2.5.x", "2.6.x", "9.9.x"]
steps:
- name: repo checkout
uses: actions/checkout@v1
Expand All @@ -21,11 +21,11 @@ jobs:
ruby-version: ${{ matrix.ruby }}
base: update
- name: update RubyGems, Bundler
run: gem update --system --no-document --conservative
run: gem update --system --no-document --conservative
- name: bundle install
run: bundle install --jobs=3 --retry=3
run: bundle install --jobs=3 --retry=3
- name: test
run: |
run: |
ruby -v
bundle exec rake
env:
Expand Down

5 comments on commit 00a65d2

@MSP-Greg
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Ruby "9.9.x" (ruby master) only exists in Windows workflows, not Ubuntu or macOS. It's being worked on.

  2. Windows can have "2.7.x" added if you'd like.

@lsegal
Copy link
Owner Author

@lsegal lsegal commented on 00a65d2 Jan 7, 2020

Choose a reason for hiding this comment

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

@MSP-Greg I switched over to eregon/use-ruby-action because it supports Ruby 2.7 on all platforms. See 112a890.

As far as a 9.9.x equivalent goes, it's not really necessary just yet.

@MSP-Greg
Copy link
Contributor

@MSP-Greg MSP-Greg commented on 00a65d2 Jan 7, 2020

Choose a reason for hiding this comment

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

Cool. Actually, it also uses current releases, the Actions Rubies are a little old on all platforms.

Do you want a windows specific step added to install the missing gems (probably a few days)?

EDIT: Forgot, actions/checkout@v1 is now at actions/checkout@v2

@lsegal
Copy link
Owner Author

@lsegal lsegal commented on 00a65d2 Jan 7, 2020

Choose a reason for hiding this comment

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

@MSP-Greg a Windows specific step would be great yea.

@lsegal
Copy link
Owner Author

@lsegal lsegal commented on 00a65d2 Jan 8, 2020

Choose a reason for hiding this comment

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

@MSP-Greg actually it turns out redcloth/redcarpet are actually compiling just fine on Windows systems, the pending issues were mostly just due to poorly written tests and some weird runtime mingw things that we're working around in f4f02ba.

Please sign in to comment.