Skip to content

Commit

Permalink
ci: adding github action to build go binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
lanathlor committed Nov 13, 2024
1 parent 965c694 commit 6dce0ab
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build go binaries

on: push

jobs:
build-stamusctl:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- { runner: ubuntu-latest, os: linux, arch: amd64, go-version: 1.22 }
# - { runner: macos-latest, os: darwin, arch: amd64, go-version: 1.22 }
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: make cli
- name: Upload
uses: actions/upload-artifact@v4
with:
name: stamusctl-${{matrix.os}}-${{matrix.arch}}
path: dist/*

build-stamusdaemon:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- { runner: ubuntu-latest, os: linux, arch: amd64, go-version: 1.22 }
# - { runner: macos-latest, os: darwin, arch: amd64, go-version: 1.22 }
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: make daemon
- name: Upload
uses: actions/upload-artifact@v4
with:
name: stamusd-${{matrix.os}}-${{matrix.arch}}
path: dist/*

0 comments on commit 6dce0ab

Please sign in to comment.