mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
CI: speedup build by 2.4x. restore nightly build (#3772)
* setup docker buildx * add snyk integration * add go cache for docker build * cancel redundant job if there is new commit into same PR or branch
This commit is contained in:
parent
eaa3716507
commit
41bf9a481a
4 changed files with 19 additions and 1 deletions
4
.github/workflows/codeql-analysis-js.yml
vendored
4
.github/workflows/codeql-analysis-js.yml
vendored
|
@ -13,6 +13,10 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 18 * * 2"
|
- cron: "30 18 * * 2"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
|
|
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
|
@ -30,6 +30,10 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 18 * * 2"
|
- cron: "30 18 * * 2"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
|
|
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -17,6 +17,10 @@ on:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: lint
|
name: lint
|
||||||
|
@ -74,12 +78,18 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
|
id: go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.19.5
|
go-version: 1.19.5
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: gocache-for-docker
|
||||||
|
key: gocache-docker-${{ runner.os }}-${{ steps.go.outputs.go-version }}-${{ hashFiles('go.mod') }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make vmcluster-crossbuild
|
make vmcluster-crossbuild
|
||||||
|
|
|
@ -3,7 +3,7 @@ FROM $go_builder_image
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
RUN apk add git gcc musl-dev make wget --no-cache && \
|
RUN apk add git gcc musl-dev make wget --no-cache && \
|
||||||
mkdir /opt/cross-builder && \
|
mkdir /opt/cross-builder && \
|
||||||
wget https://musl.cc/aarch64-linux-musl-cross.tgz -O /opt/cross-builder/aarch64-musl.tgz && \
|
wget https://musl.cc/aarch64-linux-musl-cross.tgz -O /opt/cross-builder/aarch64-musl.tgz --no-verbose && \
|
||||||
cd /opt/cross-builder && \
|
cd /opt/cross-builder && \
|
||||||
tar zxf aarch64-musl.tgz -C ./ && \
|
tar zxf aarch64-musl.tgz -C ./ && \
|
||||||
rm /opt/cross-builder/aarch64-musl.tgz
|
rm /opt/cross-builder/aarch64-musl.tgz
|
||||||
|
|
Loading…
Reference in a new issue