Files
ply/.gitea/workflows/build.yml
tom.chivert cca153694b
build / build (push) Successful in 1m13s
no arm, but windows
2024-08-14 14:06:48 +02:00

45 lines
1.0 KiB
YAML

name: build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # all history for all branches and tags
- name: Install dependencies
run: go mod download
- name: Install libasound2-dev
run: apt update && apt install -y libasound2-dev
- name: Linux build amd64
run: GOOS=linux GOARCH=amd64 go build -o bin/ply-linux-amd64
- name: Darwin build amd64
run: GOOS=darwin GOARCH=amd64 go build -o bin/ply-darwin-amd64
- name: Windows build amd64
run: GOOS=windows GOARCH=amd64 go build -o bin/ply-windows-amd64.exe
- name: Create release
uses: https://gitea.com/actions/release-action@main
with:
draft: false
prerelease: false
files: |-
bin/**
api_key: "${{ secrets.RELEASE_TOKEN }}"