From 9d6682fd589efff5e7daee2e93667ab01c2e6f5c Mon Sep 17 00:00:00 2001 From: naiba Date: Sat, 13 Jul 2024 13:00:48 +0800 Subject: [PATCH] fix: build --- .github/workflows/test-on-pr.yml | 3 +++ .github/workflows/test.yml | 3 +++ go.mod | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/test-on-pr.yml index 182b77d..0bdca9e 100644 --- a/.github/workflows/test-on-pr.yml +++ b/.github/workflows/test-on-pr.yml @@ -36,4 +36,7 @@ jobs: tags: timetzdata ldflags: -s -w --extldflags '-static -fpic' -X github.com/naiba/nezha/service/singleton.Version=test buildmode: default + - name: fix dist + run: | + mv dist/dashboard-linux-arm-7 dist/dashboard-linux-arm diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98762dc..b672515 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,3 +43,6 @@ jobs: tags: timetzdata ldflags: -s -w --extldflags '-static -fpic' -X github.com/naiba/nezha/service/singleton.Version=test buildmode: default + - name: fix dist + run: | + mv dist/dashboard-linux-arm-7 dist/dashboard-linux-arm diff --git a/go.mod b/go.mod index 22abc69..8d9438b 100644 --- a/go.mod +++ b/go.mod @@ -2,8 +2,6 @@ module github.com/naiba/nezha go 1.21 -toolchain go1.22.3 - require ( code.cloudfoundry.org/bytefmt v0.0.0-20240425163905-bcdc1ad063ea code.gitea.io/sdk/gitea v0.18.0