-
Notifications
You must be signed in to change notification settings - Fork 23
51 lines (48 loc) · 1.54 KB
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build Dynamite
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ["1.21.x"]
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [amd64, arm64] # Add ARM64 architecture
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v
- name: Upload Go build results linux
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'Linux' && matrix.arch == 'amd64' }}
with:
name: Dynamite-Linux
path: dynamite
- name: Upload Go build results arm64-linux
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'Linux' && matrix.arch == 'arm64' }}
with:
name: Dynamite-ARM64-Linux
path: dynamite
- name: Upload Go build results windows
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'Windows' }}
with:
name: Dynamite-Windows
path: dynamite.exe
- name: Upload Go build results macos
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'macOS' && matrix.arch == 'amd64' }}
with:
name: Dynamite-macOS
path: dynamite
- name: Upload Go build results arm64-macos
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'macOS' && matrix.arch == 'arm64' }}
with:
name: Dynamite-ARM64-macOS
path: dynamite