-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.12 KB
/
build.yaml
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
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- name: Install dependencies
run: go get .
- name: Build Linux amd64
run: GOARCH=amd64 go build -v -o foldcli-amd64-linux .
- name: Build Linux arm64
run: GOARCH=arm64 go build -v -o foldcli-arm64-linux .
- name: Build Windows amd64
run: GOARCH=amd64 GOOS=windows go build -v -o foldcli-amd64-win.exe .
- name: Build Windows arm64
run: GOARCH=arm64 GOOS=windows go build -v -o foldcli-arm64-win.exe .
- name: Build MacOS arm64
run: GOARCH=arm64 GOOS=darwin go build -v -o foldcli-arm64-macos .
- name: Build MacOS amd64
run: GOARCH=amd64 GOOS=darwin go build -v -o foldcli-amd64-macos .
- name: Upload Build Results
uses: actions/upload-artifact@v3
if: always()
with:
name: foldcli executables
path: foldcli*