Skip to content

Commit

Permalink
Binary Build
Browse files Browse the repository at this point in the history
PR github action to build binary files

WIP
Signed-off-by: Matthew B White <[email protected]>
  • Loading branch information
mbwhite committed Oct 17, 2022
1 parent 80dd4cb commit 1b89c75
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:


jobs:

Expand All @@ -26,3 +28,12 @@ jobs:

- name: Race test
run: make unit-tests-race

- name: Build Binaries
run: make binaries

- uses: actions/upload-artifact@v3
with:
name: binaries
path: |
bin/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ check-deps:
.PHONY: idemixgen
idemixgen:
@go install ./tools/idemixgen

.PHONY: binaries
binaries:
mkdir -p bin/amd64
GOOS=linux GOARCH=amd64 go build -o bin/amd64/idemixgen tools/idemixgen/main.go

mkdir -p bin/arm64
GOOS=darwin GOARCH=arm64 go build -o bin/arm64/idemixgen tools/idemixgen/main.go

0 comments on commit 1b89c75

Please sign in to comment.