Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
W01fh4cker authored Nov 19, 2023
1 parent 08a25ec commit fe83ec5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Go Project

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [1.17]
os: [windows, macOS, ubuntu]
arch: [amd64, arm64]

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Build
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build main.go

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: main-${{ matrix.os }}-${{ matrix.arch }}
path: ./main

0 comments on commit fe83ec5

Please sign in to comment.