mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-07-26 10:39:25 +03:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v5...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
88 lines
2.1 KiB
YAML
88 lines
2.1 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: {}
|
|
|
|
concurrency:
|
|
cancel-in-progress: true
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.os }}-${{ matrix.arch }}
|
|
permissions:
|
|
contents: read
|
|
# Runs on dedicated runner with extra resources to increase build speed.
|
|
runs-on: 'vm-runner'
|
|
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Go
|
|
id: go
|
|
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
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 }}
|