forked from umee-network/umee
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.02 KB
/
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
name: Build
on: [push, pull_request]
# This workflow makes amd64 and arm64 binaries for macOS and Linux.
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64]
targetos: [darwin, linux]
name: umee ${{ matrix.arch }} for ${{ matrix.targetos }}
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.18
env:
GOOS: ${{ matrix.targetos }}
GOARCH: ${{ matrix.arch }}
- name: Get Go Cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/golangci-lint
~/.cache/go-build
key: ${{ runner.os }}-go-cache-${{ hashFiles('**/go.sum') }}
- name: Compile
run: |
go mod download
cd cmd/umeed
go build .
- uses: actions/upload-artifact@v3
with:
name: umeed ${{ matrix.targetos }} ${{ matrix.arch }}
path: cmd/umeed/umeed