Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandar Stojanov <[email protected]>
  • Loading branch information
losisin committed Oct 25, 2023
2 parents 3dbf09a + 5891804 commit f651154
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
run: make test-all
- name: Install plugin
run: make install
- name: Run plugin
run: helm schema -help
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ PLUGIN_SHORTNAME := json-schema
BUILD_DATE := $(shell date -u '+%Y-%m-%d %I:%M:%S UTC' 2> /dev/null)
GIT_HASH := $(shell git rev-parse HEAD 2> /dev/null)

OS_FAMILY := $(shell (uname | tr '[:upper:]' '[:lower:]'))
SYS := $(shell (uname | tr '[:upper:]' '[:lower:]'))
ifneq(, $(findstring mingw, $(SYS)))
OS_FAMILY = windows
else ifneq(, $(findstring cygwin, $(SYS)))
OS_FAMILY = windows
endif

GOPATH ?= $(shell go env GOPATH)
PATH := $(GOPATH)/bin:$(PATH)
Expand Down

0 comments on commit f651154

Please sign in to comment.