mirror of
https://github.com/Lifailon/lazyjournal.git
synced 2026-11-11 01:09:46 +01:00
debug env version
This commit is contained in:
@@ -109,7 +109,7 @@ jobs:
|
||||
# macOS
|
||||
- name: Unit testing (files, flags and run main interface) in macOS
|
||||
if: ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro == 'macos-15' }}
|
||||
run: sudo go test -v --run "TestUnixFiles|TestFlags|TestMainInterface" -cover
|
||||
run: sudo go test -v --run "TestUnixFiles|TestFlags|TestCommandColor|TestMainInterface" -cover
|
||||
continue-on-error: true
|
||||
timeout-minutes: 5
|
||||
|
||||
@@ -129,7 +129,7 @@ jobs:
|
||||
|
||||
- name: Unit testing (events, files, flags and interface) in Windows
|
||||
if: ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro == 'windows-2022' }}
|
||||
run: go test -v --run "TestWin.*|TestFlags|TestMainInterface|TestMockInterface" -cover
|
||||
run: go test -v --run "TestWin.*|TestFlags|TestCommandColor|TestMainInterface|TestMockInterface" -cover
|
||||
continue-on-error: true
|
||||
timeout-minutes: 5
|
||||
|
||||
@@ -163,3 +163,5 @@ jobs:
|
||||
with:
|
||||
name: ${{ env.ARTIFACT_NAME }}
|
||||
path: bin/
|
||||
env:
|
||||
ARTIFACT_NAME: ${{ env.ARTIFACT_NAME }}
|
||||
@@ -1,4 +1,4 @@
|
||||
version := $(shell go run main.go -v)
|
||||
VERSION := $(shell go run main.go -v)
|
||||
|
||||
prep:
|
||||
@go fmt ./...
|
||||
@@ -29,7 +29,7 @@ test: prep
|
||||
go test -v -cover --run $(n) ./...
|
||||
|
||||
build: prep
|
||||
@echo "Build version: $(version)"
|
||||
@echo "Build version: $(VERSION)"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/lazyjournal-$(VERSION)-linux-amd64
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/lazyjournal-$(VERSION)-linux-arm64
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o bin/lazyjournal-$(VERSION)-darwin-amd64
|
||||
|
||||
Reference in New Issue
Block a user