diff --git a/.gitea/workflows/default.yaml b/.gitea/workflows/default.yaml index 1ceeba1..298f6b8 100644 --- a/.gitea/workflows/default.yaml +++ b/.gitea/workflows/default.yaml @@ -1,14 +1,19 @@ -name: Build the API on: [push] env: GIN_MODE: release jobs: build: - needs: [test] + name: Build the API + strategy: + matrix: + go: [ '1.18', '1.19', '1.20' ] steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - name: Setup Go + uses: actions/setup-go@v3 with: - go-version: "1.20" + go-version: ${{ matrix.go }} check-latest: true - - run: go build -ldflags "-s -w" \ No newline at end of file + cache: true + - name: Run Build + run: go build -ldflags "-s -w" \ No newline at end of file