on: [push] env: GIN_MODE: release jobs: build: name: Build the API strategy: matrix: go: [ '1.17', '1.18', '1.19', '1.20' ] steps: - uses: actions/checkout@v3 - name: Workaround for zstd run: apt update && apt install zstd - name: Set up Go uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} check-latest: true - name: Run build run: go build -ldflags "-s -w" with: name: holochecker_api path: holochecker_api