go-cmw/.drone.yml
Elia el Lazkani b52312f876
All checks were successful
continuous-integration/drone/push Build is passing
chore(): Reconfigure pipeline
2023-07-02 21:14:30 +02:00

71 lines
1.1 KiB
YAML

---
kind: pipeline
name: test
steps:
- name: test-code
image: golang
environment:
commands:
- go get
- go test
---
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
image: golang
environment:
GOOS: darwin
GOARCH: amd64
commands:
- go get
- go build -o bin/cmw-darwin-amd64
- name: build-windows-amd64
image: golang
environment:
GOOS: windows
GOARCH: amd64
commands:
- go get
- go build -o bin/cmw-windows-amd64
- name: build-linux-arm64
image: golang
environment:
GOOS: linux
GOARCH: arm64
commands:
- go get
- go build -o bin/cmw-linux-arm64
- name: build-darwin-arm64
image: golang
environment:
GOOS: darwin
GOARCH: arm64
commands:
- go get
- go build -o bin/cmw-darwin-arm64
- name: check-all
image: golang
commands:
- ls -ltra bin/