Skip to content

Commit

Permalink
build go for 5 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
pcunning committed May 17, 2023
1 parent 6192669 commit 3fc7627
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/go-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Go

on:
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true

- name: Build RPi
run: go build -v -o adif-multitool-rpi ./adifmt
env:
GOOS: linux
GOARCH: arm
GOARM: 5

- name: Build OSX-amd64
run: go build -v -o adif-multitool-osx ./adifmt
env:
GOOS: darwin
GOARCH: amd64

- name: Build OSX-arm64
run: go build -v -o adif-multitool-osx-arm ./adifmt
env:
GOOS: darwin
GOARCH: arm64

- name: Build Windows
run: go build -v -o adif-multitool-windows ./adifmt
env:
GOOS: windows
GOARCH: 386

- name: Build Windows-arm
run: go build -v -o adif-multitool-windows-arm ./adifmt
env:
GOOS: windows
GOARCH: amd64

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Latest Build"
files: |
adif-multitool-rpi
adif-multitool-osx
adif-multitool-osx-arm
adif-multitool-windows
adif-multitool-windows-arm

0 comments on commit 3fc7627

Please sign in to comment.