-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.yaml
50 lines (42 loc) · 1.67 KB
/
tasks.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
47
48
49
50
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
includes:
- lint: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/lint.yaml
tasks:
# build tasks
- name: build-all
description: build all the CLI binaries and gen checksums
actions:
- task: build-cli-linux-amd
- task: build-cli-linux-arm
- task: build-cli-mac-intel
- task: build-cli-mac-apple
- cmd: sha256sum build/* > build/checksums.txt
- name: build-cli-linux-amd
description: build the CLI for Linux AMD64
actions:
- cmd: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="${BUILD_ARGS}" -o build/uds-releaser main.go
- name: build-cli-linux-arm
description: build the CLI for Linux ARM64
actions:
- cmd: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="${BUILD_ARGS}" -o build/uds-releaser-arm main.go
- name: build-cli-mac-intel
description: build the CLI for Mac Intel
actions:
- cmd: GOOS=darwin GOARCH=amd64 go build -ldflags="${BUILD_ARGS}" -o build/uds-releaser-mac-intel main.go
- name: build-cli-mac-apple
description: build the CLI for Mac Apple
actions:
- cmd: GOOS=darwin GOARCH=arm64 go build -ldflags="${BUILD_ARGS}" -o build/uds-releaser-mac-apple main.go
- name: e2e
description: run all e2e tests
actions:
- task: build-all
- cmd: go test ./... -failfast -v -timeout 5m
dir: src/test/e2e
- name: unit
description: run all unit tests
actions:
- cmd: |
# shellcheck disable=SC2046
go test $(go list ./... | grep -v test) -failfast -v -timeout 5m