Skip to content

Add examples for distros #9

Add examples for distros

Add examples for distros #9

Workflow file for this run

name: PR
on:
push:
branches:
- main
pull_request:
paths:
- tests/**
- make/**
- Makefile
- .github/**
- pkg/**
- cmd/**
- go.{mod,sum}
jobs:
detect:
runs-on: ubuntu-latest
outputs:
arch: ${{ steps.set-matrix.outputs.arch }}
steps:
- id: set-matrix
run: |
if [ "${{ contains(github.event.pull_request.labels.*.name, 'arm64') }}" == "true" ]; then
echo "arch=['x86_64', 'aarch64']" >> $GITHUB_OUTPUT
else
echo "arch=['x86_64']" >> $GITHUB_OUTPUT
fi
build-matrix:
needs: detect
strategy:
matrix:
arch: ${{fromJson(needs.detect.outputs.arch)}}
flavor: ['green']
uses: ./.github/workflows/build_and_test.yaml
with:
arch: ${{ matrix.arch }}
flavor: ${{ matrix.flavor }}