go-cmw/.drone.yml

72 lines
1.1 KiB
YAML
Raw Normal View History

2023-07-02 19:01:44 +00:00
---
kind: pipeline
name: test
steps:
2023-07-02 19:13:09 +00:00
- name: test-code
2023-07-02 19:01:44 +00:00
image: golang
environment:
commands:
- go get
- go test
2023-07-02 19:13:09 +00:00
---
kind: pipeline
name: build
steps:
- name: prepare
image: golang
commands:
- mkdir bin/
- name: build-linux-amd64
image: golang
environment:
GOOS: linux
GOARCH: amd64
commands:
- go get
- go build -o bin/cmw-linux-amd64
- name: build-darwin-amd64
2023-07-02 19:01:44 +00:00
image: golang
environment:
GOOS: darwin
GOARCH: amd64
commands:
2023-07-02 19:13:09 +00:00
- go get
- go build -o bin/cmw-darwin-amd64
2023-07-02 19:01:44 +00:00
2023-07-02 19:13:09 +00:00
- name: build-windows-amd64
2023-07-02 19:01:44 +00:00
image: golang
environment:
GOOS: windows
GOARCH: amd64
commands:
2023-07-02 19:13:09 +00:00
- go get
- go build -o bin/cmw-windows-amd64
2023-07-02 19:01:44 +00:00
2023-07-02 19:13:09 +00:00
- name: build-linux-arm64
2023-07-02 19:01:44 +00:00
image: golang
environment:
GOOS: linux
GOARCH: arm64
commands:
2023-07-02 19:13:09 +00:00
- go get
- go build -o bin/cmw-linux-arm64
2023-07-02 19:01:44 +00:00
2023-07-02 19:13:09 +00:00
- name: build-darwin-arm64
2023-07-02 19:01:44 +00:00
image: golang
environment:
GOOS: darwin
GOARCH: arm64
commands:
2023-07-02 19:13:09 +00:00
- go get
- go build -o bin/cmw-darwin-arm64
- name: check-all
image: golang
commands:
- ls -ltra bin/