-
-
Notifications
You must be signed in to change notification settings - Fork 7
29 lines (26 loc) · 594 Bytes
/
Copy pathbuild.yml
File metadata and controls
29 lines (26 loc) · 594 Bytes
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
name: Build
on:
push:
branches:
- 'master'
pull_request:
paths:
- 'go.*'
- '**/*.go'
- 'Dockerfile'
- '.github/workflows/build.yml'
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
id: go
- run: go build -ldflags "-w -s" -o ./outputs/cxcli .