Skip to content

Commit

Permalink
Merge pull request #97 from lomik/build
Browse files Browse the repository at this point in the history
Tiny build improvements
  • Loading branch information
Civil authored Sep 24, 2021
2 parents c4431ef + babf6b4 commit 4468207
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
env:
BINARY: ${{ github.event.repository.name }}
CGO_ENABLED: 0

outputs:
matrix: ${{ steps.build.outputs.matrix }}
Expand All @@ -23,6 +24,11 @@ jobs:
- uses: actions/checkout@v2
name: Checkout

- name: Test
run: make test
env:
CGO_ENABLED: 1

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ on:
jobs:

tests:
env:
CGO_ENABLED: 0
name: Test code
runs-on: ubuntu-latest
strategy:
matrix:
go:
- ^1.14
- ^1.15
- ^1.16
- ^1.17
- ^1
steps:

Expand All @@ -43,6 +45,8 @@ jobs:

- name: Test
run: make test
env:
CGO_ENABLED: 1

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ else
VERSION:=$(shell sh -c 'git describe --always --tags | sed -e "s/^v//i"')
endif

SRCS:=$(shell find . -name '*.go')

all: $(NAME)

.PHONY: clean
Expand All @@ -24,7 +26,7 @@ clean:
rm -f *deb *rpm
rm -f sha256sum md5sum

$(NAME): $(shell find . -name '*.go')
$(NAME): $(SRCS)
$(GO) build $(MODULE)

e2e-test: $(NAME)
Expand Down

0 comments on commit 4468207

Please sign in to comment.