25 lines
530 B
YAML
25 lines
530 B
YAML
|
name: gobuild
|
||
|
|
||
|
on: [push]
|
||
|
|
||
|
env:
|
||
|
BUILD_TYPE: Release
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Install Golang Essentials
|
||
|
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
|
||
|
|
||
|
- name: Test Go installation
|
||
|
run: go version
|
||
|
|
||
|
- name: Build
|
||
|
script:
|
||
|
- mkdir ./build
|
||
|
- go mod tidy
|
||
|
- go build -a -V -o ./build/ .
|
||
|
|