Skip to content

Merge branch 'main' of https://github.com/happer64bit/froop #5

Merge branch 'main' of https://github.com/happer64bit/froop

Merge branch 'main' of https://github.com/happer64bit/froop #5

name: Go Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-windows:
name: Build on Windows
runs-on: windows-latest
strategy:
matrix:
architecture: [amd64, 386] # Specify the architectures: amd64 for 64-bit, 386 for 32-bit
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Build
run: |
$env:GOARCH="${{ matrix.architecture }}"
go build -o froop_${{ matrix.architecture }}.exe ./main.go
- name: Upload Windows artifact
uses: actions/upload-artifact@v3
with:
name: windows-build
path: froop_*.exe
build-linux:
name: Build on Linux
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, 386] # Specify the architectures: amd64 for 64-bit, 386 for 32-bit
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Build
run: |
GOARCH=${{ matrix.architecture }} go build -o froop_${{ matrix.architecture }} ./main.go
- name: Upload Linux artifact
uses: actions/upload-artifact@v3
with:
name: linux-build
path: froop_*
build-macos:
name: Build on macOS
runs-on: macos-latest
strategy:
matrix:
architecture: [amd64, arm64] # Include arm64 for Apple Silicon
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Build
run: |
GOARCH=${{ matrix.architecture }} go build -o froop_${{ matrix.architecture }} ./main.go
- name: Upload macOS artifact
uses: actions/upload-artifact@v3
with:
name: macos-build
path: froop_*