diff options
Diffstat (limited to '.github/workflows/CI.yml')
| -rw-r--r-- | .github/workflows/CI.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..04d24fa --- /dev/null +++ b/.github/workflows/CI.yml | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | name: CI | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: [ "main" ] | ||
| 6 | paths-ignore: | ||
| 7 | - '.github/*' | ||
| 8 | - '.gitignore' | ||
| 9 | - '**.md' | ||
| 10 | - 'LICENSE' | ||
| 11 | pull_request: | ||
| 12 | branches: [ "main" ] | ||
| 13 | |||
| 14 | jobs: | ||
| 15 | build: | ||
| 16 | runs-on: ubuntu-latest | ||
| 17 | steps: | ||
| 18 | - uses: actions/checkout@v3 | ||
| 19 | |||
| 20 | - name: Setup Go environment | ||
| 21 | uses: actions/setup-go@v3.3.0 | ||
| 22 | with: | ||
| 23 | go-version: 1.18 | ||
| 24 | architecture: amd64 | ||
| 25 | |||
| 26 | - name: Build | ||
| 27 | run: env GOOS=windows GOARCH=amd64 go build . | ||