-
Notifications
You must be signed in to change notification settings - Fork 111
82 lines (80 loc) · 2.34 KB
/
tests.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Proxyscotch Build
on:
push:
branches: [ main , master ]
pull_request:
branches: [ main , master ]
jobs:
test-linux:
name: Test Linux Build
runs-on: ubuntu-22.04
steps:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install libgtk-3-dev libayatana-appindicator3-dev libwebkit2gtk-4.0-dev
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
# Run a build but don't do anything with the artifacts.
# i.e., don't sign them or anything.
# This is just to check that a build would run correctly for release.
- name: Build Proxyscotch
run: |
go get -d -v
./build.sh linux server arch=arm64
./build.sh linux server arch=amd64
./build.sh linux desktop
- name: Test Proxyscotch
run: |
go get -d -v
go test ./libproxy
build-darwin:
name: Test Darwin Build
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
# Run a build but don't do anything with the artifacts.
# i.e., don't sign them or anything.
# This is just to check that a build would run correctly for release.
- name: Build Proxyscotch
run: |
go get -d -v
./build.sh darwin server
./build.sh darwin desktop
- name: Test Proxyscotch
run: |
go get -d -v
go test ./libproxy
build-windows:
name: Test Windows Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
# Run a build but don't do anything with the artifacts.
# i.e., don't sign them or anything.
# This is just to check that a build would run correctly for release.
- name: Build Proxyscotch
run: |
go get -d -v
./build.sh windows server
./build.sh windows desktop
- name: Test Proxyscotch
run: |
go get -d -v
go test ./libproxy