From ea9ea032a51cd34842038543f139227dcfba72de Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+BiSaXa@users.noreply.github.com> Date: Sun, 4 Sep 2022 15:01:32 +0300 Subject: Create CI.yml --- .github/workflows/CI.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/CI.yml 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 @@ +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-20.04 + steps: + - uses: actions/checkout@v3 + + - name: Setup Go environment + uses: actions/setup-go@v3.3.0 + with: + go-version: 1.18 + architecture: amd64 + - name: Build + run: env GOOS=windows GOARCH=amd64 go build bitreader.go + build-linux: + name: Linux Build + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + + - name: Setup Go environment + uses: actions/setup-go@v3.3.0 + with: + go-version: 1.18 + architecture: amd64 + - name: Build + run: env GOOS=linux GOARCH=amd64 go build bitreader.go -- cgit v1.2.3