|
15 | 15 | - 'docs/**'
|
16 | 16 | - '**.md'
|
17 | 17 |
|
| 18 | +concurrency: |
| 19 | + group: "${{ github.workflow }}-${{ github.ref }}" |
| 20 | + cancel-in-progress: true |
| 21 | + |
18 | 22 | env:
|
19 |
| - GO_VERSION: '1.18' |
20 |
| - GOSEC_VERSION: '2.12.0' |
| 23 | + GO_VERSION: '1.19' |
| 24 | + GOSEC_VERSION: '2.14.0' |
21 | 25 |
|
22 | 26 | jobs:
|
23 | 27 | build-ovs-and-ovn:
|
@@ -128,31 +132,28 @@ jobs:
|
128 | 132 | name: Build Kube-OVN
|
129 | 133 | runs-on: windows-2019
|
130 | 134 | steps:
|
131 |
| - - name: Set up Go 1.x |
132 |
| - uses: actions/setup-go@v3 |
| 135 | + - uses: actions/checkout@v3 |
| 136 | + - uses: actions/setup-go@v3 |
133 | 137 | with:
|
134 | 138 | go-version: '${{ env.GO_VERSION }}'
|
135 | 139 | check-latest: true
|
136 | 140 | id: go
|
137 | 141 |
|
138 |
| - - name: Check out code |
139 |
| - uses: actions/checkout@v3 |
140 |
| - |
141 |
| - - name: Go Build Cache |
142 |
| - uses: actions/cache@v3 |
143 |
| - with: |
144 |
| - path: /home/runner/.cache/go-build |
145 |
| - key: ${{ runner.os }}-go-x86-build-${{ hashFiles('**/go.sum') }} |
146 |
| - restore-keys: | |
147 |
| - ${{ runner.os }}-go-x86-build- |
| 142 | + - name: Export Go full version |
| 143 | + run: | |
| 144 | + $goVersion = (go version).Split()[2] |
| 145 | + $entry = [string]::Format("GO_FULL_VER={0}", $goVersion) |
| 146 | + Add-Content -Path $env:GITHUB_ENV -Value $entry |
148 | 147 |
|
149 |
| - - name: Go Mod Cache |
| 148 | + - name: Go Cache |
150 | 149 | uses: actions/cache@v3
|
151 | 150 | with:
|
152 |
| - path: ~/go/pkg/mod |
153 |
| - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} |
| 151 | + path: | |
| 152 | + ~\AppData\Local\go-build |
| 153 | + ~\go\pkg\mod |
| 154 | + key: ${{ runner.os }}-${{ env.GO_FULL_VER }}-${{ hashFiles('**/go.sum') }} |
154 | 155 | restore-keys: |
|
155 |
| - ${{ runner.os }}-go- |
| 156 | + ${{ runner.os }}-${{ env.GO_FULL_VER }}- |
156 | 157 |
|
157 | 158 | - name: Install gosec
|
158 | 159 | run: |
|
@@ -182,8 +183,7 @@ jobs:
|
182 | 183 | - build-kube-ovn
|
183 | 184 | runs-on: windows-2019
|
184 | 185 | steps:
|
185 |
| - - name: Check out code |
186 |
| - uses: actions/checkout@v3 |
| 186 | + - uses: actions/checkout@v3 |
187 | 187 |
|
188 | 188 | - name: Download Kube-OVN binaries
|
189 | 189 | uses: actions/download-artifact@v3
|
|
0 commit comments