-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 948 Bytes
/
test.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
45
name: test config and do_commands on each commit
on:
push:
branches:
- main
paths:
- '**/**.go'
- 'Makefile'
- '.github/workflows/test.yml'
pull_request:
paths:
- '**/**.go'
- 'Makefile'
- '.github/workflows/test.yml'
jobs:
tests:
strategy:
matrix:
include:
- platform: linux/amd64
runs-on: ubuntu-latest
- platform: linux/arm64
runs-on: buildjet-8vcpu-ubuntu-2204-arm
- platform: macos/arm64
runs-on: buildjet-12vcpu-macos-12-arm
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.13
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libx264-dev git-lfs
- name: Run tests
run: make test