blob: 58d5e9175e66effd67e302c6aa99628eadae6391 (
plain) (
blame)
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
|
name: CI
on:
push:
branches: [ "main" ]
paths-ignore:
- '.github/*'
- '.gitignore'
- '**.md'
- 'LICENSE'
pull_request:
branches: [ "main" ]
jobs:
build-windows:
name: Windows Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version: '1.21.0'
architecture: amd64
- name: Build
run: env GOOS=windows GOARCH=amd64 go build .
build-linux:
name: Linux Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version: '1.21.0'
architecture: amd64
- name: Build
run: env GOOS=linux GOARCH=amd64 go build .
|