projector/.gitea/workflows/build.yml

26 lines
547 B
YAML
Raw Normal View History

name: gobuild
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
2024-07-21 02:57:25 +00:00
- name: Clone The Repo
- uses: actions/checkout@v2
- name: Install Golang Essentials
2024-07-21 03:05:32 +00:00
run:
wget https://go.dev/dl/go1.22.5.linux-amd64.tar.gz
rm -rf /usr/local/go
tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
2024-07-21 03:00:15 +00:00
mkdir ./build
go mod tidy
go build -a -V -o ./build/ .
2024-07-21 03:05:32 +00:00