Build example and local backend conditionaly

* `make` will build the cli with all backends exnabled
* `make cross` will cross build without the example and local backend

You can still cross compile with all backends by doing

```console
$ BUILD_TAGS=example,local make cross
```

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Djordje Lukic 2020-06-15 17:41:59 +02:00
parent 3566c720e3
commit 39042aa8bd
10 changed files with 41 additions and 9 deletions

View file

@ -46,9 +46,13 @@ jobs:
${{ runner.os }}-go-
- name: Test
env:
BUILD_TAGS: example,local
run: make -f builder.Makefile test
- name: Build
env:
BUILD_TAGS: example,local
run: make -f builder.Makefile cli
- name: E2E Test
@ -77,9 +81,13 @@ jobs:
${{ runner.os }}-go-
- name: Test
env:
BUILD_TAGS: example,local
run: make -f builder.Makefile test
- name: Build
env:
BUILD_TAGS: example,local
run: make -f builder.Makefile cli
- name: E2E Test

View file

@ -3,7 +3,7 @@ name: releaser
on:
push:
tags:
- 'v*'
- "v*"
jobs:
upload-release:
runs-on: ubuntu-latest
@ -32,4 +32,3 @@ jobs:
artifacts: "bin/*"
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}