-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (35 loc) · 984 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Go
on:
push:
branches: [ maestro ]
pull_request:
branches: [ maestro ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ['1.16']
os: ['ubuntu-latest', 'macos-latest']
steps:
- name: Check Out Code
uses: actions/checkout@v2
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Install Homebrew (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
brew install cmake make pkg-config x265 libde265 libjpeg libtool
brew install libheif
- name: Download Go modules
run: go get -v -t -d ./...
- name: Run Tests
run: go test -v ./...
- name: Build
run: go build -v ./...