bet(build): try to build binaries #8
Workflow file for this run
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
# This is a basic workflow that is manually triggered | |
name: compile beacond | |
on: [pull_request, push] | |
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 }} | |
# Build and capture an artifact | |
- name: Compile becond | |
run: | | |
make build | |
# Uploads binaries | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: beacond-${{ matrix.targetos }}-${{ matrix.arch }} | |
path: build/bin/beacond |