Files
my-rook-config/.github/workflows/build.yml
T
Sébastien Han b011fd579b ci: add build job
Run the build **only** when no go files have changed since the other job
will build Rook anyway.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-11-16 18:05:11 +01:00

23 lines
626 B
YAML

name: Build
on:
pull_request:
# paths-ignore means we run the action when files have changed and no one them are Golang files.
paths-ignore:
- '**.go'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- uses: actions/setup-go@v2
with:
go-version: 1.13
- name: build rook
run: |
# set VERSION to a dummy value since Jenkins normally sets it for us. Do this to make Helm happy and not fail with "Error: Invalid Semantic Version"
GOPATH=$(go env GOPATH) make clean && make -j$nproc IMAGES='ceph' VERSION=0 build