diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e29c962a3..3eb9882a6 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -8,7 +8,7 @@ jobs: make: strategy: matrix: - os: [ubuntu-20.04] + os: [ubuntu-16.04] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index 86b0a51df..000000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: macOS -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] -jobs: - make: - strategy: - matrix: - os: [macos-10.15] - fail-fast: false - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - - name: "[Enclose.IO] Install dependencies" - run: | - brew upgrade - brew install squashfs - - name: "[Enclose.IO] Check dependencies" - run: | - sw_vers - uname -a - uname -p - uname -m - sysctl -n machdep.cpu.brand_string - which mksquashfs - mksquashfs -version - - name: "[Enclose.IO] Set up Ruby" - uses: ruby/setup-ruby@v1 - - name: "[Enclose.IO] Install rubocop" - run: gem install rubocop - - name: "[Enclose.IO] Run rubocop" - run: rubocop - - name: "[Enclose.IO] Install dependencies" - run: bundle install - - name: "[Enclose.IO] Rake" - run: bundle exec rake - - name: "[Enclose.IO] Create macOS Release" - if: ${{ github.ref == 'refs/heads/master' && success() }} - id: create_macos_release - uses: pmq20/create-release@delete-old-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: darwin-x64 - release_name: Latest macOS Build - draft: false - prerelease: false - replace_old_tag: true - - name: "[Enclose.IO] Upload macOS Release" - if: ${{ github.ref == 'refs/heads/master' && success() }} - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_macos_release.outputs.upload_url }} - asset_path: ./rubyc - asset_name: rubyc - asset_content_type: application/octet-stream diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2d9e52bec..40c5341cf 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -9,8 +9,8 @@ jobs: strategy: matrix: include: - - os: windows-2019 - vs: 2019 + - os: windows-2016 + vs: 2017 fail-fast: false runs-on: ${{ matrix.os }} env: diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..27578d51c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: ruby + +rvm: 2.7.1 + +os: osx + +osx_image: xcode7.3 + +addons: + apt: + packages: + - squashfs-tools + +before_install: + - brew update + - brew install squashfs + +before_script: + - mksquashfs -version + +script: + - rake test diff --git a/README.md b/README.md index 595b5144e..2b504098c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ https://enclose.io/rubyc *Packing your Ruby application into a single executable.* [![Windows](https://github.com/pmq20/ruby-packer/workflows/Windows/badge.svg)](https://github.com/pmq20/ruby-packer/actions?query=workflow%3A"Windows") -[![macOS](https://github.com/pmq20/ruby-packer/workflows/macOS/badge.svg)](https://github.com/pmq20/ruby-packer/actions?query=workflow%3A"macOS") +[![macOS](https://travis-ci.org/pmq20/ruby-packer.svg?branch=master)](https://travis-ci.org/pmq20/ruby-packer) [![Linux](https://github.com/pmq20/ruby-packer/workflows/Linux/badge.svg)](https://github.com/pmq20/ruby-packer/actions?query=workflow%3A"Linux") ## Features