88 branches :
99 - " *"
1010
11+ concurrency :
12+ # Cancel any previous workflows if they are from a PR or push.
13+ group : ${{ github.event.pull_request.number || github.ref }}
14+ cancel-in-progress : true
15+
16+ defaults :
17+ run :
18+ shell : bash
19+
1120env :
1221 # If you change this value, please change it in the following files as well:
1322 # /Dockerfile
2938
3039 steps :
3140 - name : git checkout
32- uses : actions/checkout@v3
41+ uses : actions/checkout@v4
3342 with :
3443 fetch-depth : 0
3544
6877
6978 steps :
7079 - name : git checkout
71- uses : actions/checkout@v3
80+ uses : actions/checkout@v4
7281 with :
7382 fetch-depth : 0
7483
8897 - name : build CLI binaries
8998 run : make go-install-cli
9099
100+ # #######################
101+ # cross compilation
102+ # #######################
103+ cross-compile :
104+ name : cross compilation
105+ runs-on : ubuntu-latest
106+ strategy :
107+ fail-fast : true
108+ matrix :
109+ # Please keep this list in sync with make/release_flags.mk!
110+ include :
111+ - name : i386
112+ sys : linux-386
113+ - name : amd64
114+ sys : darwin-amd64 linux-amd64 windows-amd64
115+ - name : arm
116+ sys : darwin-arm64 linux-armv6 linux-armv7 linux-arm64
117+ steps :
118+ - name : cleanup space
119+ run : rm -rf /opt/hostedtoolcache
120+
121+ - name : git checkout
122+ uses : actions/checkout@v4
123+
124+ - name : setup go ${{ env.GO_VERSION }}
125+ uses : ./.github/actions/setup-go
126+ with :
127+ go-version : ' ${{ env.GO_VERSION }}'
128+ key-prefix : cross-compile
129+ use-build-cache : ' no'
130+
131+ - name : build release for all architectures (skip app build)
132+ run : make go-release sys="${{ matrix.sys }}"
133+
91134 # #######################
92135 # proto compile check
93136 # #######################
96139 runs-on : ubuntu-latest
97140 steps :
98141 - name : git checkout
99- uses : actions/checkout@v3
142+ uses : actions/checkout@v4
100143 with :
101144 fetch-depth : 0
102145
@@ -132,7 +175,7 @@ jobs:
132175 runs-on : ubuntu-latest
133176 steps :
134177 - name : git checkout
135- uses : actions/checkout@v3
178+ uses : actions/checkout@v4
136179 with :
137180 fetch-depth : 0
138181
@@ -160,7 +203,7 @@ jobs:
160203 runs-on : ubuntu-latest
161204 steps :
162205 - name : git checkout
163- uses : actions/checkout@v3
206+ uses : actions/checkout@v4
164207 with :
165208 fetch-depth : 0
166209
@@ -173,7 +216,7 @@ jobs:
173216 run : mkdir -p app/build; touch app/build/index.html
174217
175218 - name : run check
176- run : make lint mod-check
219+ run : make mod-check && make lint
177220
178221 # #######################
179222 # unit tests
@@ -190,7 +233,7 @@ jobs:
190233 - unit
191234 steps :
192235 - name : git checkout
193- uses : actions/checkout@v3
236+ uses : actions/checkout@v4
194237 with :
195238 fetch-depth : 0
196239
@@ -210,7 +253,7 @@ jobs:
210253 runs-on : ubuntu-latest
211254 steps :
212255 - name : git checkout
213- uses : actions/checkout@v3
256+ uses : actions/checkout@v4
214257 with :
215258 fetch-depth : 0
216259
@@ -253,7 +296,7 @@ jobs:
253296 if : ' !contains(github.event.pull_request.labels.*.name, '' no-changelog'' )'
254297 steps :
255298 - name : git checkout
256- uses : actions/checkout@v3
299+ uses : actions/checkout@v4
257300
258301 - name : release notes check
259302 run : scripts/check-release-notes.sh
0 commit comments