-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (30 loc) · 1.4 KB
/
client-build.yaml
File metadata and controls
37 lines (30 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Client Binary Build
on: pull_request
jobs:
build-client-binaries:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Build binaries and test linux-amd64
run: |
set -ex
# Build the binaries
cd client
make build-all
# Assert that all the expected binaries were built
[ ! -f "bin/aks-secure-tls-bootstrap-client-amd64" ] && echo "expected aks-secure-tls-bootstrap-client-amd64 to have been built" && exit 1
[ ! -f "bin/aks-secure-tls-bootstrap-client-arm64" ] && echo "expected aks-secure-tls-bootstrap-client-arm64 to have been built" && exit 1
[ ! -f "bin/aks-secure-tls-bootstrap-client-amd64.exe" ] && echo "expected aks-secure-tls-bootstrap-client-amd64.exe to have been built" && exit 1
[ ! -f "bin/aks-secure-tls-bootstrap-client-arm64.exe" ] && echo "expected aks-secure-tls-bootstrap-client-arm64.exe to have been built" && exit 1
# Make sure we can actually invoke linux/amd64
pushd bin
chmod +x ./aks-secure-tls-bootstrap-client-amd64
./aks-secure-tls-bootstrap-client-amd64 -h
if [ $? -ne 0 ]; then
echo "unable to invoke linux/amd64 binary"
exit 1
fi
popd