2019-08-27 11:42:46 +00:00
|
|
|
name: main
|
|
|
|
on:
|
2023-01-18 19:42:27 +00:00
|
|
|
workflow_run:
|
|
|
|
workflows: ["main - test"]
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
|
2022-04-16 23:56:39 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2019-08-27 11:42:46 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-18 19:42:27 +00:00
|
|
|
- name: Code checkout
|
|
|
|
uses: actions/checkout@v3
|
2023-01-19 07:34:20 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.workflow_run.head_branch }}
|
2023-01-18 19:42:27 +00:00
|
|
|
|
2019-08-27 11:42:46 +00:00
|
|
|
- name: Setup Go
|
2023-01-18 19:42:27 +00:00
|
|
|
uses: actions/setup-go@v3
|
2019-08-27 11:42:46 +00:00
|
|
|
with:
|
2023-01-11 02:42:02 +00:00
|
|
|
go-version: 1.19.5
|
2023-01-18 19:42:27 +00:00
|
|
|
check-latest: true
|
|
|
|
cache: true
|
|
|
|
|
2019-08-27 11:42:46 +00:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2022-07-13 13:44:39 +00:00
|
|
|
make victoria-metrics-crossbuild
|
|
|
|
make vmuitils-crossbuild
|