-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5bdc0c
commit fdc2ae4
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This is a basic workflow that is manually triggered | ||
|
||
name: compile beacond | ||
|
||
# Controls when the action will run. Workflow runs when manually triggered using the UI | ||
# or API. | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
# This workflow makes x86_64 binaries for mac, windows, and linux. | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
arch: [amd64, arm64] | ||
targetos: [darwin, linux] | ||
|
||
name: beacond ${{ matrix.arch }} for ${{ matrix.targetos }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "^1.22" | ||
env: | ||
GOOS: ${{ matrix.targetos }} | ||
GOARCH: ${{ matrix.arch }} | ||
|
||
# we build and install in case we want to run it or capture an artifact as we do in the step below. | ||
- name: Compile becond | ||
run: | | ||
make build ./... | ||
# now uploads genesis.json and bin | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: beacond ${{ matrix.targetos }} ${{ matrix.arch }} | ||
path: cmd/beacond |