Bump GoLang to 1.17.2

This commit is contained in:
Deluan 2021-10-13 09:53:44 -04:00
parent 174ad9e9da
commit 7505b5c554
2 changed files with 9 additions and 9 deletions

View File

@ -142,7 +142,7 @@ jobs:
- name: Run GoReleaser - SNAPSHOT - name: Run GoReleaser - SNAPSHOT
if: startsWith(github.ref, 'refs/tags/') != true if: startsWith(github.ref, 'refs/tags/') != true
uses: docker://deluan/ci-goreleaser:1.17.1-1 uses: docker://deluan/ci-goreleaser:1.17.2-1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
@ -150,7 +150,7 @@ jobs:
- name: Run GoReleaser - RELEASE - name: Run GoReleaser - RELEASE
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
uses: docker://deluan/ci-goreleaser:1.17.1-1 uses: docker://deluan/ci-goreleaser:1.17.2-1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:

View File

@ -9,7 +9,7 @@ GIT_SHA=source_archive
GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD))) GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD)))
endif endif
CI_RELEASER_VERSION=1.17.1-1 ## https://github.com/navidrome/ci-goreleaser CI_RELEASER_VERSION=1.17.2-1 ## https://github.com/navidrome/ci-goreleaser
setup: check_env download-deps setup-git ##@1_Run_First Install dependencies and prepare development environment setup: check_env download-deps setup-git ##@1_Run_First Install dependencies and prepare development environment
@echo Downloading Node dependencies... @echo Downloading Node dependencies...
@ -69,8 +69,7 @@ setup-git: ##@Development Setup Git hooks (pre-commit and pre-push)
buildall: buildjs build ##@Build Build the project, both frontend and backend buildall: buildjs build ##@Build Build the project, both frontend and backend
.PHONY: buildall .PHONY: buildall
build: check_go_env ##@Build Build only backend build: warning-noui-build check_go_env ##@Build Build only backend
@echo "WARNING: This command does not build the frontend, it uses the latest one built by 'make buildjs'"
go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/navidrome/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" -tags=netgo go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/navidrome/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" -tags=netgo
.PHONY: build .PHONY: build
@ -78,14 +77,12 @@ buildjs: check_node_env ##@Build Build only frontend
@(cd ./ui && npm run build) @(cd ./ui && npm run build)
.PHONY: buildjs .PHONY: buildjs
all: ##@Cross_Compilation Build binaries for all supported platforms. It does not build the frontend all: warning-noui-build ##@Cross_Compilation Build binaries for all supported platforms. It does not build the frontend
@echo "WARNING: This command does not builds the frontend, it uses the latest one built by 'make buildjs'"
docker run -t -v $(PWD):/workspace -w /workspace deluan/ci-goreleaser:$(CI_RELEASER_VERSION) \ docker run -t -v $(PWD):/workspace -w /workspace deluan/ci-goreleaser:$(CI_RELEASER_VERSION) \
goreleaser release --rm-dist --skip-publish --snapshot goreleaser release --rm-dist --skip-publish --snapshot
.PHONY: all .PHONY: all
single: ##@Cross_Compilation Build binaries for a single supported platforms. It does not build the frontend single: warning-noui-build ##@Cross_Compilation Build binaries for a single supported platforms. It does not build the frontend
@echo "WARNING: This command does not build the frontend, it uses the latest one built by 'make buildjs'"
@if [ -z "${GOOS}" -o -z "${GOARCH}" ]; then \ @if [ -z "${GOOS}" -o -z "${GOARCH}" ]; then \
echo "Usage: GOOS=<os> GOARCH=<arch> make single"; \ echo "Usage: GOOS=<os> GOARCH=<arch> make single"; \
echo "Options:"; \ echo "Options:"; \
@ -97,6 +94,9 @@ single: ##@Cross_Compilation Build binaries for a single supported platforms. It
goreleaser build --rm-dist --snapshot --single-target --id navidrome_${GOOS}_${GOARCH} goreleaser build --rm-dist --snapshot --single-target --id navidrome_${GOOS}_${GOARCH}
.PHONY: single .PHONY: single
warning-noui-build:
@echo "WARNING: This command does not build the frontend, it uses the latest built with 'make buildjs'"
.PHONY: warning-noui-build
########################################## ##########################################
#### Miscellaneous #### Miscellaneous