From b52312f87695b87aed889ae6eea0f045b26987c8 Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Sun, 2 Jul 2023 21:13:09 +0200 Subject: [PATCH] chore(): Reconfigure pipeline --- .drone.yml | 52 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index b2884b7..c5ee664 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,47 +3,69 @@ kind: pipeline name: test steps: -- name: test-linux-amd64 +- 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 test + - go get + - go build -o bin/cmw-linux-amd64 -- name: test-darwin-amd64 +- name: build-darwin-amd64 image: golang environment: GOOS: darwin GOARCH: amd64 commands: - - go get - - go test + - go get + - go build -o bin/cmw-darwin-amd64 -- name: test-windows-amd64 +- name: build-windows-amd64 image: golang environment: GOOS: windows GOARCH: amd64 commands: - - go get - - go test + - go get + - go build -o bin/cmw-windows-amd64 -- name: test-linux-arm64 +- name: build-linux-arm64 image: golang environment: GOOS: linux GOARCH: arm64 commands: - - go get - - go test + - go get + - go build -o bin/cmw-linux-arm64 -- name: test-darwin-arm64 +- name: build-darwin-arm64 image: golang environment: GOOS: darwin GOARCH: arm64 commands: - - go get - - go test + - go get + - go build -o bin/cmw-darwin-arm64 + +- name: check-all + image: golang + commands: + - ls -ltra bin/