github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/.github/workflows/debug.yml (about) 1 name: Debug build 2 3 on: 4 push: 5 branches: 6 - dev 7 paths-ignore: 8 - '**.md' 9 - '.github/**' 10 - '!.github/workflows/debug.yml' 11 pull_request: 12 branches: 13 - dev 14 15 jobs: 16 build: 17 name: Linux Debug build 18 runs-on: ubuntu-latest 19 steps: 20 - name: Checkout 21 uses: actions/checkout@v4 22 with: 23 fetch-depth: 0 24 - name: Setup Go 25 uses: actions/setup-go@v4 26 with: 27 go-version: ^1.22 28 - name: Add cache to Go proxy 29 run: | 30 version=`git rev-parse HEAD` 31 mkdir build 32 pushd build 33 go mod init build 34 go get -v github.com/sagernet/sing@$version 35 popd 36 continue-on-error: true 37 - name: Build 38 run: | 39 make test 40 build_go118: 41 name: Linux Debug build (Go 1.18) 42 runs-on: ubuntu-latest 43 steps: 44 - name: Checkout 45 uses: actions/checkout@v4 46 with: 47 fetch-depth: 0 48 - name: Setup Go 49 uses: actions/setup-go@v4 50 with: 51 go-version: ~1.18 52 continue-on-error: true 53 - name: Build 54 run: | 55 make test 56 build_go119: 57 name: Linux Debug build (Go 1.19) 58 runs-on: ubuntu-latest 59 steps: 60 - name: Checkout 61 uses: actions/checkout@v4 62 with: 63 fetch-depth: 0 64 - name: Setup Go 65 uses: actions/setup-go@v4 66 with: 67 go-version: ~1.19 68 continue-on-error: true 69 - name: Build 70 run: | 71 make test 72 build_go120: 73 name: Linux Debug build (Go 1.20) 74 runs-on: ubuntu-latest 75 steps: 76 - name: Checkout 77 uses: actions/checkout@v4 78 with: 79 fetch-depth: 0 80 - name: Setup Go 81 uses: actions/setup-go@v4 82 with: 83 go-version: ~1.20 84 continue-on-error: true 85 - name: Build 86 run: | 87 make test 88 build_go121: 89 name: Linux Debug build (Go 1.21) 90 runs-on: ubuntu-latest 91 steps: 92 - name: Checkout 93 uses: actions/checkout@v4 94 with: 95 fetch-depth: 0 96 - name: Setup Go 97 uses: actions/setup-go@v4 98 with: 99 go-version: ~1.21 100 continue-on-error: true 101 - name: Build 102 run: | 103 make test 104 build__windows: 105 name: Windows Debug build 106 runs-on: windows-latest 107 steps: 108 - name: Checkout 109 uses: actions/checkout@v4 110 with: 111 fetch-depth: 0 112 - name: Setup Go 113 uses: actions/setup-go@v4 114 with: 115 go-version: ^1.22 116 continue-on-error: true 117 - name: Build 118 run: | 119 make test 120 build_darwin: 121 name: macOS Debug build 122 runs-on: macos-latest 123 steps: 124 - name: Checkout 125 uses: actions/checkout@v4 126 with: 127 fetch-depth: 0 128 - name: Setup Go 129 uses: actions/setup-go@v4 130 with: 131 go-version: ^1.22 132 continue-on-error: true 133 - name: Build 134 run: | 135 make test