Skip to content

Initial commit

Initial commit #2

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Run go mod tidy in src folder
working-directory: ./src
run: go mod tidy
- name: Build
working-directory: ./src
env:
GOARCH: ${{ matrix.arch }}
REPO_NAME: ${{ github.event.repository.name }}
run: go build -o bin/${REPO_NAME}-${{ matrix.arch }} ./...