forked from IntellexApps/blcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (67 loc) · 1.64 KB
/
main.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
61
62
63
64
65
66
67
68
name: Test and Build
on: [push]
jobs:
test:
strategy:
matrix:
go-version: [1.13.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Dependencies
run: make dep
- name: Test
run: make test
- name: Test race
run: make race
release_linux:
needs: test
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
- name: Checkout code
uses: actions/checkout@v2
- name: Install Linux packages
run: sudo apt update && sudo apt install -y upx-ucl
- name: Build binary
run: make buildlinux
- name: Compress binary
run: make compresslinux
- name: Upload linux build
uses: actions/upload-artifact@v1
with:
name: blchecker.linux
path: ./blchecker.linux
- name: Upload blacklist file
uses: actions/upload-artifact@v1
with:
name: blacklist
path: ./bl_list
release_macos:
needs: test
runs-on: macos-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
- name: Checkout code
uses: actions/checkout@v2
- name: Install UPX
run: brew update && brew install upx
- name: Build binary
run: make buildmacos
- name: Upload macos build
uses: actions/upload-artifact@v1
with:
name: blchecker.macos
path: ./blchecker.macos