forked from singnet/snet-daemon
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 950 Bytes
/
build.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
name: build
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "dev" ]
workflow_dispatch:
env:
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: clone repo
uses: actions/checkout@v3
- name: download and install
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
- name: install protoc (protobuf)
uses: arduino/setup-protoc@v2
with:
version: "27.2"
include-pre-releases: false
- name: chmod +x
run: chmod +x ./scripts/install_deps && chmod +x ./scripts/build
- name: install dependencies
run: ./scripts/install_deps
- name: build linux
run: ./scripts/build linux amd64 dev
- name: build darwin
run: ./scripts/build darwin amd64 dev
- name: build windows
run: ./scripts/build windows amd64 dev