Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Jul 24, 2024
1 parent dc38e6e commit e03c1e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ env:
GO_VERSION: '1.22'
TZ: Asia/Shanghai


permissions: write-all

on:
Expand Down Expand Up @@ -42,11 +41,12 @@ jobs:
run: |
npm install -g yarn
npm install -g electron-forge
- name: install task
- name: install tools
run: |
echo "install task"
echo "install tools"
go install github.com/go-task/task/v3/cmd/task@latest
go install github.com/kevinburke/go-bindata/v4/...@latest
- name: Run task
run: |
echo "Run task"
task
make default
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ GIT_HASH=`git show -s --format=%H`
BUILD_CMD=go build -ldflags "-X 'main.AppVersion=${VERSION}' -X 'main.BuildTime=${BUILD_TIME}' -X 'main.GoVersion=${GO_VERSION}' -X 'main.GitHash=${GIT_HASH}'"
BUILD_CMD_WIN=go build -ldflags "-s -w -X 'main.AppVersion=${VERSION}' -X 'main.BuildTime=${BUILD_TIME}' -X 'main.GoVersion=${GO_VERSION}' -X 'main.GitHash=${GIT_HASH}'"

default: win64 linux linux_arm64 mac mac_arm64
server: server_win64 server_linux server_linux_arm64 server_mac server_mac_arm64
default: win64 linux linux_arm64 mac
server: server_win64 server_linux server_linux_arm64 server_mac

server_win64: prepare compile_server_win64 copy_files_win64 zip_server_win64
server_linux: prepare compile_server_linux copy_files_linux zip_server_linux
Expand Down

0 comments on commit e03c1e8

Please sign in to comment.