mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
84 lines
1.8 KiB
YAML
84 lines
1.8 KiB
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- cluster
|
|
- master
|
|
paths:
|
|
- '**.go'
|
|
- '**/Dockerfile'
|
|
- '**/Makefile'
|
|
- '!app/vmui/**'
|
|
- '.github/workflows/build.yml'
|
|
pull_request:
|
|
branches:
|
|
- cluster
|
|
- master
|
|
paths:
|
|
- '**.go'
|
|
- '**/Dockerfile'
|
|
- '**/Makefile'
|
|
- '!app/vmui/**'
|
|
- '.github/workflows/build.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
cancel-in-progress: true
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.os }}-${{ matrix.arch }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
arch: 386
|
|
- os: linux
|
|
arch: amd64
|
|
- os: linux
|
|
arch: arm64
|
|
- os: linux
|
|
arch: arm
|
|
- os: linux
|
|
arch: ppc64le
|
|
- os: linux
|
|
arch: s390x
|
|
- os: darwin
|
|
arch: amd64
|
|
- os: darwin
|
|
arch: arm64
|
|
- os: freebsd
|
|
arch: amd64
|
|
- os: openbsd
|
|
arch: amd64
|
|
- os: netbsd
|
|
arch: amd64
|
|
- os: windows
|
|
arch: amd64
|
|
steps:
|
|
- name: Code checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Go
|
|
id: go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
cache-dependency-path: |
|
|
go.sum
|
|
Makefile
|
|
app/**/Makefile
|
|
go-version-file: 'go.mod'
|
|
- run: go version
|
|
|
|
- name: Build victoria-metrics for ${{ matrix.os }}-${{ matrix.arch }}
|
|
run: make victoria-metrics-${{ matrix.os }}-${{ matrix.arch }}
|
|
|
|
- name: Build vmutils for ${{ matrix.os }}-${{ matrix.arch }}
|
|
run: make vmutils-${{ matrix.os }}-${{ matrix.arch }}
|