From ecc1f62c160accdbcce79f59855a6e2c2e7faea4 Mon Sep 17 00:00:00 2001 From: Chuck Bear Date: Wed, 20 Mar 2024 15:26:42 -0400 Subject: [PATCH] bet(build): try to build binaries --- .github/workflows/build.yaml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000000..a63a77caf1 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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: [pull_request, workflow_dispatch] + +# This workflow makes x86_64 binaries for mac 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: build/bin/beacond \ No newline at end of file