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 Oct 22, 2024
1 parent ed3dbe3 commit d084ee6
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build go binaries

on: push

jobs:
build-stamusctl:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
# - { runner: macos-latest, os: darwin, arch: amd64 }
# - { runner: macos-latest, os: darwin, arch: arm64 }
- { runner: ubuntu-latest, os: linux, arch: amd64, go-version: 1.22 }
# - { runner: ubuntu-latest, os: windows, arch: amd64 }
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: macos-latest, os: darwin, arch: amd64 }
# - { runner: macos-latest, os: darwin, arch: arm64 }
- { runner: ubuntu-latest, os: linux, arch: amd64, go-version: 1.22 }
# - { runner: ubuntu-latest, os: windows, arch: amd64 }
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 d084ee6

Please sign in to comment.