Chip-8_Go/.drone.yml

47 lines
1.0 KiB
YAML
Raw Normal View History

2020-10-10 21:29:53 +01:00
kind: pipeline
type: docker
name: default
steps:
- name : test
image: golang:latest
commands:
2020-10-11 19:18:08 +01:00
- go test -v ./chip8
2020-10-11 19:26:53 +01:00
- name : build windows
2020-10-11 19:18:08 +01:00
image: golang:latest
commands:
2020-10-11 19:43:11 +01:00
- GOOS=windows GOARCH=amd64 go build -o windows_test.exe ./cmd/test_prog
2020-10-11 19:26:53 +01:00
- name : build linux
image: golang:latest
commands:
2020-10-11 19:43:11 +01:00
- GOOS=linux GOARCH=amd64 go build -o linux_test ./cmd/test_prog
2020-10-11 19:26:53 +01:00
- name : build mac
image: golang:latest
commands:
2020-10-11 19:43:11 +01:00
- GOOS=darwin GOARCH=amd64 go build -o mac_test ./cmd/test_prog
2020-10-11 20:55:31 +01:00
- name : build wasm
image: golang:latest
commands:
- GOOS=js GOARCH=wasm go build -o main.wasm ./cmd/web
2020-10-11 19:18:08 +01:00
2020-10-11 19:26:53 +01:00
- name: publish
image: plugins/gitea-release
depends_on:
- test
2020-10-11 19:28:44 +01:00
- build windows
- build linux
- build mac
2020-10-11 19:26:53 +01:00
# This step is only run when a branch is tagged in Gitea.
when:
event:
- tag
settings:
base_url: https://git.jacknet.io
api_key:
from_secret: gitea_token
files:
- mac_test
- linux_test
2020-10-11 19:43:11 +01:00
- windows_test.exe
2020-10-11 19:26:53 +01:00
checksum:
- sha1