Skip to content

Commit

Permalink
ci: merge osx and windows into ci.yml
Browse files Browse the repository at this point in the history
and trim Appveyor to just 32-bit
  • Loading branch information
flavorjones committed May 20, 2021
1 parent b46b7bc commit f86b71b
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 128 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,59 @@ jobs:
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test:valgrind

osx:
needs: ["basic"]
strategy:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.5", "2.6", "2.7", "3.0"]
name: "osx / ${{matrix.ruby}} / syslib-${{matrix.sys}}"
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- uses: actions/cache@v2
if: matrix.sys == 'disable'
with:
path: ports/archives
key: tarballs-${{hashFiles('**/dependencies.yml')}}
restore-keys: tarballs-
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test

windows:
needs: ["basic"]
strategy:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.5", "2.6", "2.7", "3.0", "mingw"]
name: "windows / ${{matrix.ruby}} / syslib-${{matrix.sys}}"
runs-on: windows-latest
steps:
- name: configure git crlf
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- uses: actions/checkout@v2
- uses: MSP-Greg/setup-ruby-pkgs@v1
with:
ruby-version: "${{matrix.ruby}}"
mingw: "libxml2 libxslt"
bundler-cache: true
- uses: actions/cache@v2
if: matrix.sys == 'disable'
with:
path: ports/archives
key: tarballs-${{hashFiles('**/dependencies.yml')}}
restore-keys: tarballs-
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test

jruby:
needs: ["basic"]
strategy:
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/macos.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/windows.yml

This file was deleted.

30 changes: 3 additions & 27 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,36 +33,12 @@ test_script:

environment:
matrix:
- ruby_version: head-x64
- ruby_version: head-x64
INSTALL_PACKAGES: "mingw-w64-x86_64-libxslt"
EXTCONF_PARAMS: "--use-system-libraries"

- ruby_version: 30-x64
- ruby_version: 30-x64
INSTALL_PACKAGES: "mingw-w64-x86_64-libxslt"
EXTCONF_PARAMS: "--use-system-libraries"

- ruby_version: 27-x64
- ruby_version: 27-x64
INSTALL_PACKAGES: "mingw-w64-x86_64-libxslt"
- ruby_version: 30
- ruby_version: 30
INSTALL_PACKAGES: "mingw-w64-i686-libxslt"
EXTCONF_PARAMS: "--use-system-libraries"

- ruby_version: 27
- ruby_version: 27
INSTALL_PACKAGES: "mingw-w64-i686-libxslt"
EXTCONF_PARAMS: "--use-system-libraries"

- ruby_version: 26-x64
- ruby_version: 26-x64
INSTALL_PACKAGES: "mingw-w64-x86_64-libxslt"
EXTCONF_PARAMS: "--use-system-libraries"

- ruby_version: 25-x64
- ruby_version: 25-x64
INSTALL_PACKAGES: "mingw-w64-x86_64-libxslt"
EXTCONF_PARAMS: "--use-system-libraries"

matrix:
allow_failures:
- ruby_version: head-x64

0 comments on commit f86b71b

Please sign in to comment.