Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit a8ec16d

Browse files
authored
[CI] add CI (#1)
1 parent a66d312 commit a8ec16d

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.circleci/config.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Golang CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-go/ for more details
4+
version: 2
5+
jobs:
6+
build:
7+
docker:
8+
- image: circleci/golang:1.9
9+
working_directory: /go/src/github.com/fastgitorg/fgit-go
10+
environment:
11+
CGO_ENABLED: 0
12+
steps:
13+
- checkout
14+
- run:
15+
name:
16+
Build AMD64
17+
environmemt:
18+
GOARCH: amd64
19+
command: |
20+
GOOS=windows
21+
go build -o ~/release/fgit-windows-amd64.exe fgit.go
22+
GOOS=darwin
23+
go build -o ~/release/fgit-darwin-amd64 fgit.go
24+
GOOS=linux
25+
go build -o ~/release/fgit-linux-amd64 fgit.go
26+
27+
- run:
28+
name:
29+
Build 386
30+
environmemt:
31+
GOARCH: 386
32+
command: |
33+
GOOS=windows
34+
go build -o ~/release/fgit-windows-386.exe fgit.go
35+
GOOS=linux
36+
go build -o ~/release/fgit-linux-386 fgit.go
37+
38+
- run:
39+
name:
40+
Build ARM
41+
environmemt:
42+
GOARCH: arm
43+
command: |
44+
GOOS=linux
45+
go build -o ~/release/fgit-linux-arm fgit.go
46+
47+
- run:
48+
name:
49+
Build ARM64
50+
environmemt:
51+
GOARCH: arm64
52+
command: |
53+
GOOS=linux
54+
go build -o ~/release/fgit-linux-arm64 fgit.go
55+
56+
- store_artifacts:
57+
path: ~/release
58+
destination: CI Build

0 commit comments

Comments
 (0)