-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.55 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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/*