-
Notifications
You must be signed in to change notification settings - Fork 95
60 lines (60 loc) · 1.8 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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 Pre-release
draft: false
prerelease: true
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