Skip to content

Commit

Permalink
Revert "to #128 - switch to the oldest runners available on Github Ac…
Browse files Browse the repository at this point in the history
…tion"

This reverts commit 08059fc.
  • Loading branch information
pmq20 committed Sep 5, 2020
1 parent 08059fc commit 512ed33
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
make:
strategy:
matrix:
os: [ubuntu-16.04]
os: [ubuntu-20.04]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
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
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
matrix:
include:
- os: windows-2016
vs: 2017
- os: windows-2019
vs: 2019
fail-fast: false
runs-on: ${{ matrix.os }}
env:
Expand Down
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://travis-ci.org/pmq20/ruby-packer.svg?branch=master)](https://travis-ci.org/pmq20/ruby-packer)
[![macOS](https://github.com/pmq20/ruby-packer/workflows/macOS/badge.svg)](https://github.com/pmq20/ruby-packer/actions?query=workflow%3A"macOS")
[![Linux](https://github.com/pmq20/ruby-packer/workflows/Linux/badge.svg)](https://github.com/pmq20/ruby-packer/actions?query=workflow%3A"Linux")

## Features
Expand Down

0 comments on commit 512ed33

Please sign in to comment.