Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Build bin/ssi-service on updates to main branch (#111)
Browse files Browse the repository at this point in the history
Downstream consumers of ssi-service may wish to use bleeding edge functionality
without having easy access to golang build tooling. By providing binaries as an
option users do not have to worry about development environment testing to
start working with ssi-service latest features / bug fixes

Signed-off-by: John Andersen <[email protected]>

Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny authored Oct 7, 2022
1 parent 8572538 commit 7618f44
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,20 @@ jobs:
- name: Install mage
run: go install github.com/magefile/mage

- name: Build
- name: Build library
run: mage build

- name: Test
run: mage CITest

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

- name: Build binary
if: ${{ github.ref == 'refs/heads/main' }}
run: mage artifact

- uses: actions/upload-artifact@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
path: bin/ssi-service
8 changes: 7 additions & 1 deletion magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ var (

// Build builds the library.
func Build() error {
fmt.Println("Building...")
fmt.Println("Building library...")
return sh.Run(Go, "build", "-tags", "jwx_es256k", "./...")
}

// Artifact builds the binary.
func Artifact() error {
fmt.Println("Building binary...")
return sh.Run(Go, "build", "-tags", "jwx_es256k", "-o", "./bin/ssi-service", "./cmd")
}

// Vuln downloads and runs govulncheck https://go.dev/blog/vuln
func Vuln() error {
fmt.Println("Vulnerability checks...")
Expand Down

0 comments on commit 7618f44

Please sign in to comment.