aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/CI.yml
blob: f0e5e510f19d7ae2eaa11b10d6e31eace70172a7 (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: cd cmd ; 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: cd cmd ; env GOOS=linux GOARCH=amd64 go build .