Skip to content

Update go.yml

Update go.yml #3

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
permissions:
contents: write
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: ncipollo/release-action@v1
with:
artifacts: "phantomsocks-pcap,phantomsocks-original,phantomsocks-rawsocket"
token: ${{ secrets.GITHUB_TOKEN }}