-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (44 loc) · 1.16 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
name: Build
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-build-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-go-${{ hashFiles('**/go.sum') }}
- name: Build
run: make build
- name: Store operator binary
uses: actions/upload-artifact@v4
with:
name: elemental-operator
path: build/elemental-operator
overwrite: true
- name: Store register binary
uses: actions/upload-artifact@v4
with:
name: elemental-register
path: build/elemental-register
overwrite: true
- name: Store support binary
uses: actions/upload-artifact@v4
with:
name: elemental-support
path: build/elemental-support
overwrite: true