Add darwin CI job

Co-authored-by: Lukas Herman <lherman.cs@gmail.com>
This commit is contained in:
Atsushi Watanabe
2020-06-03 21:04:02 +09:00
parent ea879e1172
commit 96c19f3635

View File

@@ -8,12 +8,12 @@ on:
- master - master
jobs: jobs:
build: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go: [ '1.14', '1.13' ] go: [ '1.14', '1.13' ]
name: Go ${{ matrix.go }} name: Linux Go ${{ matrix.go }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@@ -43,5 +43,37 @@ jobs:
run: go test . pkg/... -v run: go test . pkg/... -v
env: env:
CGO_ENABLED: 0 CGO_ENABLED: 0
#- name: golint build-darwin:
# run: go lint ./... runs-on: macos-latest
strategy:
matrix:
go: [ '1.14', '1.13' ]
name: Darwin Go ${{ matrix.go }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Install dependencies
run: |
brew install \
pkg-config \
opus \
libvpx \
x264
- name: go vet
run: go vet ./...
- name: go build
run: go build ./...
- name: go build without CGO
run: go build . pkg/...
env:
CGO_ENABLED: 0
- name: go test
run: go test ./... -v -race
- name: go test without CGO
run: go test . pkg/... -v
env:
CGO_ENABLED: 0