Skip to content

Update go.yml

Update go.yml #2

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GITHUB_TOKEN: ${{ secrets.GOACTION }}
jobs:
build-linux:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: $(( secrets.GITHUB_TOKEN }}
strategy:
matrix:
include:
- goarch: amd64
goos: linux
steps:
- uses: actions/[email protected]
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.19
- name: Build
run: |
sudo apt update && sudo apt install -y libpcap-dev
go build -o ./phantomsocks-original
go build -o ./phantomsocks-pcap -tags pcap
go build -o ./phantomsocks-rawsocket -tags rawsocket
- name: upload
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.version.outputs.version }}
prerelease: true
title: "Development Build"
files: |
./nodeUpgrade-${{ matrix.goos }}-${{ matrix.goarch }}.tgz