on: [push] env: GIN_MODE: release jobs: build: name: Build the API strategy: matrix: go: [ '1.18', '1.19', '1.20' ] steps: - uses: actions/checkout@v3 - name: Setup Go uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} check-latest: true cache: true - name: Run Build run: go build -ldflags "-s -w"