47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name : test
|
|
image: golang:latest
|
|
commands:
|
|
- go test -v ./chip8
|
|
- name : build windows
|
|
image: golang:latest
|
|
commands:
|
|
- GOOS=windows GOARCH=amd64 go build -o windows_test.exe ./cmd/test_prog
|
|
- name : build linux
|
|
image: golang:latest
|
|
commands:
|
|
- GOOS=linux GOARCH=amd64 go build -o linux_test ./cmd/test_prog
|
|
- name : build mac
|
|
image: golang:latest
|
|
commands:
|
|
- GOOS=darwin GOARCH=amd64 go build -o mac_test ./cmd/test_prog
|
|
- name : build wasm
|
|
image: golang:latest
|
|
commands:
|
|
- GOOS=js GOARCH=wasm go build -o main.wasm ./cmd/web
|
|
|
|
- name: publish
|
|
image: plugins/gitea-release
|
|
depends_on:
|
|
- test
|
|
- build windows
|
|
- build linux
|
|
- build mac
|
|
# 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
|
|
- windows_test.exe
|
|
checksum:
|
|
- sha1 |