Update actions

This commit is contained in:
Milan Nikolic 2022-12-04 09:21:21 +01:00
parent c054a20cbf
commit e52946e621
No known key found for this signature in database
GPG Key ID: 9229D0EAA3AA4E75
3 changed files with 34 additions and 18 deletions

33
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,33 @@
on: [push, pull_request]
name: Build
jobs:
test:
strategy:
matrix:
go-version: [1.19.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Build
run: go build
test-extlib:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt-get update -y; sudo apt-get -y install libx264-dev
- name: Build
run: go build -tags extlib

View File

@ -1,17 +0,0 @@
on: [push, pull_request]
name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Checkout code
uses: actions/checkout@v2
- name: Install package
run: |
sudo apt-get -y install libx264-dev
- name: Test
run: go build -tags extlib

View File

@ -1,5 +1,5 @@
## x264-go
[![Build Status](https://github.com/gen2brain/x264-go/actions/workflows/test.yml/badge.svg)](https://github.com/gen2brain/x264-go/actions)
[![Build Status](https://github.com/gen2brain/x264-go/actions/workflows/build.yml/badge.svg)](https://github.com/gen2brain/x264-go/actions)
[![GoDoc](https://godoc.org/github.com/gen2brain/x264-go?status.svg)](https://godoc.org/github.com/gen2brain/x264-go)
[![Go Report Card](https://goreportcard.com/badge/github.com/gen2brain/x264-go?branch=master)](https://goreportcard.com/report/github.com/gen2brain/x264-go)