github.com/metacubex/sing-tun@v0.2.7-0.20240512075008-89e7c6208eec/.github/workflows/debug.yml (about) 1 name: Debug build 2 3 on: 4 push: 5 branches: 6 - main 7 - dev 8 paths-ignore: 9 - '**.md' 10 - '.github/**' 11 - '!.github/workflows/debug.yml' 12 pull_request: 13 branches: 14 - dev 15 16 jobs: 17 build: 18 name: Debug build 19 runs-on: ubuntu-latest 20 steps: 21 - name: Checkout 22 uses: actions/checkout@v2 23 with: 24 fetch-depth: 0 25 - name: Get latest go version 26 id: version 27 run: | 28 echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g') 29 - name: Setup Go 30 uses: actions/setup-go@v2 31 with: 32 go-version: ${{ steps.version.outputs.go_version }} 33 - name: Add cache to Go proxy 34 run: | 35 version=`git rev-parse HEAD` 36 mkdir build 37 pushd build 38 go mod init build 39 go get -v github.com/metacubex/sing-tun@$version 40 popd 41 continue-on-error: true 42 - name: Build 43 run: | 44 go build -v .