2024-07-21 02:51:16 +00:00
|
|
|
name: gobuild
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-07-21 10:47:42 +00:00
|
|
|
runs-on: ubuntu-gitea
|
2024-07-21 02:51:16 +00:00
|
|
|
|
|
|
|
steps:
|
2024-07-21 02:57:25 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2024-07-21 10:47:42 +00:00
|
|
|
- name: Install Golang And Build Projector
|
2024-07-21 03:05:32 +00:00
|
|
|
run:
|
2024-07-21 10:54:31 +00:00
|
|
|
uname -a
|
|
|
|
&& lsb_release -a
|
|
|
|
&& 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
|
2024-07-21 10:47:42 +00:00
|
|
|
&& export PATH=$PATH:/usr/local/go/bin
|
2024-07-21 10:54:31 +00:00
|
|
|
&& which go
|
|
|
|
&& go version
|
|
|
|
&& mkdir ./build
|
|
|
|
&& go mod tidy
|
2024-07-21 10:59:27 +00:00
|
|
|
&& go build -a -v -o ./build/ .
|