From fe8b0fabc419c1ac4e06cacd169fb14f9e9e6a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=B7=E6=B7=86?= <32300164+mnixry@users.noreply.github.com> Date: Mon, 3 Aug 2020 20:08:21 +0800 Subject: [PATCH] Add ci.yml to automatic build binary --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..47593da --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + name: Build binary CI + runs-on: ubuntu-latest + strategy: + matrix: + # build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64 + goos: [linux, windows, darwin] + goarch: ["386", amd64, arm] + exclude: + - goos: darwin + goarch: arm + + steps: + - uses: actions/checkout@v2 + + - name: Setup Go environment + uses: actions/setup-go@v2.1.1 + with: + go-version: 1.14 + + - name: Build binary file + run: | + echo ::warning:: Build on ${{ matrix.goos }} - ${{ matrix.goarch }} is not implentmented + +