Skip to content

feat: general repository hardening and augmentation #191

feat: general repository hardening and augmentation

feat: general repository hardening and augmentation #191

Workflow file for this run

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