Skip to content

Commit

Permalink
Merge pull request #96 from CosmosContracts/faddat-patch-2
Browse files Browse the repository at this point in the history
Update build.yml
  • Loading branch information
JakeHartnell authored Nov 25, 2021
2 parents 29f8163 + d58da95 commit 99cc3d5
Showing 1 changed file with 16 additions and 29 deletions.
45 changes: 16 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,26 @@
# This is a basic workflow that is manually triggered

name: juno

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on: [push, pull_request]

# This workflow makes x86_64 binaries for mac, windows, and linux.

name: every commit
jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64]
targetos: [windows, darwin, linux]
name: juno ${{ matrix.arch }} for ${{ matrix.targetos }}
name: build
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: 1.17
env:
GOOS: ${{ matrix.targetos }}
GOARCH: ${{ matrix.arch }}

- name: Compile
run: |
go mod download
cd cmd/junod
go build .
- uses: actions/upload-artifact@v2
with:
name: junod ${{ matrix.targetos }} ${{ matrix.arch }}
path: cmd/junod/junod
- run: go build ./...

test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...

0 comments on commit 99cc3d5

Please sign in to comment.