Skip to content

release: 1.12

release: 1.12 #12

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
go: ["1.22.6"]
goos: [linux]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Build with Go
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -o tunmanager_${{ matrix.goos }}_${{ matrix.goarch }} -ldflags="-w -s" -trimpath -v .
go build -o tunmanager_${{ matrix.goos }}_${{ matrix.goarch }}_debug -trimpath -v .
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tunmanager_${{ matrix.goos }}_${{ matrix.goarch }}
path: tunmanager_*