-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 921 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
name: Go
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
go: [ "1.19", "1.20", "1.21" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Set up libheif library
run: |
sudo apt-get update && sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:strukturag/libde265
sudo add-apt-repository -y ppa:strukturag/libheif
sudo apt-get update && sudo apt-get install -y libheif-dev libturbojpeg libturbojpeg-dev
- name: Test
run: |
go test ./...
go test -tags go_libheif_use_turbojpeg ./...