aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/CI.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
new file mode 100644
index 0000000..7b0aabd
--- /dev/null
+++ b/.github/workflows/CI.yml
@@ -0,0 +1,40 @@
1name: CI
2
3on:
4 push:
5 branches: [ "main" ]
6 paths-ignore:
7 - '.github/*'
8 - '.gitignore'
9 - '**.md'
10 - 'LICENSE'
11 pull_request:
12 branches: [ "main" ]
13
14jobs:
15 build-windows:
16 name: Windows Build
17 runs-on: ubuntu-20.04
18 steps:
19 - uses: actions/checkout@v3
20
21 - name: Setup Go environment
22 uses: actions/setup-go@v3.3.0
23 with:
24 go-version: 1.18
25 architecture: amd64
26 - name: Build
27 run: env GOOS=windows GOARCH=amd64 go build bitreader.go
28 build-linux:
29 name: Linux Build
30 runs-on: ubuntu-20.04
31 steps:
32 - uses: actions/checkout@v3
33
34 - name: Setup Go environment
35 uses: actions/setup-go@v3.3.0
36 with:
37 go-version: 1.18
38 architecture: amd64
39 - name: Build
40 run: env GOOS=linux GOARCH=amd64 go build bitreader.go