-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
387c2de
commit 9418e4e
Showing
3 changed files
with
51 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: build | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CGO_CFLAGS_ALLOW: -Xpreprocessor | ||
strategy: | ||
matrix: | ||
os: [ubuntu-18.04, ubuntu-20.04, macOS-10.15, macos-11.0] | ||
|
||
steps: | ||
|
||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install linux deps | ||
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04' | ||
run: | | ||
sudo add-apt-repository -y ppa:tonimelisma/ppa | ||
sudo apt-get -y install libvips-dev | ||
- name: Install macos deps | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11.0' | ||
run: | | ||
brew install vips | ||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: Build | ||
run: go build -v ./vips | ||
|
||
- name: Test | ||
run: go test -v -coverprofile=profile.cov ./... | ||
|
||
- name: Coveralls | ||
if: matrix.os == 'ubuntu-20.04' | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: profile.cov |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters