diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..70cedfd --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,22 @@ +name: macos + +on: [push, pull_request] + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + ruby: [ '2.6.x', '2.5.x', '2.4.x' ] + steps: + - uses: actions/checkout@master + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Set up Bundler + run: gem install bundler --no-document + - name: Install dependencies + run: bundle install + - name: Run test + run: rake diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml new file mode 100644 index 0000000..2fdf8d9 --- /dev/null +++ b/.github/workflows/ubuntu-rvm.yml @@ -0,0 +1,37 @@ +name: ubuntu-rvm + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [ 'ruby-head' ] + fail-fast: false + steps: + - uses: actions/checkout@master + - name: Install packages + run: | + sudo apt update -qy + sudo apt install zlib1g-dev + - name: Set up RVM + run: | + curl -sSL https://get.rvm.io | bash + - name: Set up Ruby + run: | + source $HOME/.rvm/scripts/rvm + rvm install ${{ matrix.ruby }} --binary + rvm --default use ${{ matrix.ruby }} + - name: Set up Bundler + run: | + source $HOME/.rvm/scripts/rvm + gem install bundler --no-document + - name: Install dependencies + run: | + source $HOME/.rvm/scripts/rvm + bundle install + - name: Run test + run: | + source $HOME/.rvm/scripts/rvm + rake diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..3ac0e45 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,26 @@ +name: ubuntu + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [ '2.6.x', '2.5.x', '2.4.x' ] + steps: + - uses: actions/checkout@master + - name: Install packages + run: | + sudo apt update -qy + sudo apt install zlib1g-dev + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Set up Bundler + run: gem install bundler --no-document + - name: Install dependencies + run: bundle install + - name: Run test + run: rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 056290e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -sudo: false -language: ruby -rvm: - - 2.3.6 - - 2.4.3 - - 2.5.0 - - ruby-head -before_install: gem install bundler diff --git a/README.md b/README.md index 3a18c24..5991abe 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Zlib -[![Build Status](https://travis-ci.org/ruby/zlib.svg?branch=master)](https://travis-ci.org/ruby/zlib) - This module provides access to the {zlib library}[http://zlib.net]. Zlib is designed to be a portable, free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. The zlib compression library provides in-memory compression and decompression functions, including integrity checks of the uncompressed data.