github.com/database64128/shadowsocks-go@v1.10.2-0.20240315062903-143a773533f1/.github/workflows/test_gotip.yml (about)

     1  name: Test with gotip
     2  
     3  on:
     4    workflow_dispatch:
     5  
     6  jobs:
     7    test:
     8      name: Test
     9      strategy:
    10        matrix:
    11          os: [ubuntu-latest, windows-latest, macos-latest]
    12        fail-fast: false
    13      runs-on: ${{ matrix.os }}
    14  
    15      steps:
    16        - uses: actions/checkout@v4
    17  
    18        - name: Setup Go
    19          uses: actions/setup-go@v5
    20          with:
    21            go-version-file: go.mod
    22  
    23        - name: Install gotip
    24          run: |
    25            go install golang.org/dl/gotip@latest
    26            gotip download
    27  
    28        - name: Build
    29          run: |
    30            gotip env -w GOAMD64=v3
    31            gotip build -v -trimpath -ldflags '-s -w' ./cmd/shadowsocks-go
    32            gotip build -v -trimpath -ldflags '-s -w' ./cmd/shadowsocks-go-domain-set-converter
    33  
    34        - name: Test
    35          run: gotip test -v ./...
    36  
    37        - name: Upload Binaries
    38          uses: actions/upload-artifact@v4
    39          with:
    40            name: shadowsocks-go-${{ github.sha }}-${{ matrix.os }}-x86-64-v3
    41            path: shadowsocks-go*