1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 12:03:50 +08:00

Add ci.yml to automatic build binary

This commit is contained in:
混淆 2020-08-03 20:08:21 +08:00 committed by GitHub
parent f70398342e
commit fe8b0fabc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

30
.github/workflows/ci.yml vendored Normal file
View File

@ -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