Skip to content

thrift-based proxy

thrift-based proxy #1

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
tags:
- '*'
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get release info
id: release_info
if: github.ref_type == 'tag'
uses: revam/gh-action-get-tag-and-version@v1
with:
tag: ${{ github.ref }}
prefix: v
prefixRegex: "[vV]?"
- id: set_version
uses: marcdomain/[email protected]
name: Set version
with:
variables: |
VERSION: '${{ github.ref_type }}' == 'tag' ? "${{ steps.release_info.outputs.version }}" : "0.0.0.0"
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Generate
run: go generate ./...
- name: Build
run: go build -o potatoproxy -X 'main.Version=${{ env.VERSION }}'" ./cmd/proxy
- uses: actions/upload-artifact@v4
with:
name: potatoproxy
path: potatoproxy