chore: only build/test on master branch for host arch

This commit is contained in:
Emmanuel BENOîT 2024-07-19 15:43:40 +02:00
parent d604d83c72
commit 91ff590b9c
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -1,14 +1,18 @@
name: Build project
name: Build and test project
on:
push:
branches:
- master
pull-request:
branches:
- master
jobs:
build:
runs-on: [debian-12]
runs-on: debian-12
strategy:
matrix:
go-version: [ '1.22' ]
@ -23,9 +27,9 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Build plugins for all architectures
- name: Build for host architecture
run: |
make build-cross
make build
- name: Run tests
run: |