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: on:
push: push:
branches:
- master
pull-request: pull-request:
branches:
- master
jobs: jobs:
build: build:
runs-on: [debian-12] runs-on: debian-12
strategy: strategy:
matrix: matrix:
go-version: [ '1.22' ] go-version: [ '1.22' ]
@ -23,9 +27,9 @@ jobs:
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: Build plugins for all architectures - name: Build for host architecture
run: | run: |
make build-cross make build
- name: Run tests - name: Run tests
run: | run: |