forked from osmosis-labs/osmosis
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.1 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
42
43
44
45
name: Compile Osmosis
# Controls when the action will run.
# This workflow runr on pushes to master & every Pull Requests. (Or when manually triggered)
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
# This workflow makes x86_64 binaries for mac, windows, and linux.
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64]
targetos: [darwin, linux]
include:
- targetos: darwin
arch: arm64
# include:
# - targetos: windows
# arch: amd64
name: osmosis ${{ matrix.arch }} for ${{ matrix.targetos }}
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
go-version: '^1.18'
env:
GOOS: ${{ matrix.targetos }}
GOARCH: ${{ matrix.arch }}
- name: Compile osmosis
run: |
go mod download
cd cmd/osmosisd
go build .
- uses: actions/upload-artifact@v2
with:
name: osmosisd ${{ matrix.targetos }} ${{ matrix.arch }}
path: cmd/osmosisd/osmosisd