-
Notifications
You must be signed in to change notification settings - Fork 95
60 lines (60 loc) · 1.81 KB
/
linux.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: Linux
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
make:
strategy:
matrix:
os: [ubuntu-20.04]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: "[Enclose.IO] Install dependencies"
run: |
sudo apt update
sudo apt install -y build-essential squashfs-tools
- uses: actions/checkout@v2
- name: "[Enclose.IO] Check dependencies"
run: |
cat /etc/issue
uname -a
uname -p
uname -m
lscpu
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] Bundle install"
run: bundle install
- name: "[Enclose.IO] Rake"
run: bundle exec rake
- name: "[Enclose.IO] Create Linux Release"
if: ${{ github.ref == 'refs/heads/master' && success() }}
id: create_linux_release
uses: pmq20/create-release@delete-old-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: linux-x64
release_name: Latest Linux Pre-release
draft: false
prerelease: true
replace_old_tag: true
- name: "[Enclose.IO] Upload Linux 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_linux_release.outputs.upload_url }}
asset_path: ./rubyc
asset_name: rubyc
asset_content_type: application/octet-stream