Daniel Svitan 6c1e6f2667
Some checks failed
Gitea Build Action / build (1.21.x) (push) Failing after 10m12s
Gitea Build Action / build (1.22.x) (push) Failing after 16m32s
Gitea Build Action / build (1.23.x) (push) Failing after 8m50s
Gitea Build Action / build (1.24.x) (push) Failing after 3m8s
💚 Adds multiple go versions to actions
2025-05-27 20:28:55 +02:00

28 lines
736 B
YAML

name: Gitea Build Action
run-name: ${{ gitea.actor }} build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ "1.21.x", "1.22.x", "1.23.x", "1.24.x" ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: "[server] Install dependencies"
run: go get ./server
- name: "[server] Build"
run: go build -v ./server/...
- name: "[admin] Install dependencies"
run: go get ./admin
- name: "[admin] Build"
run: go build -v ./admin/...