From c6a1fc61b1dee0e2775fbfa2fdcd1005f2b1b2d2 Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 14 Apr 2023 14:33:53 +0200 Subject: [PATCH] Modified action --- .gitea/workflows/default.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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