From 468257ebd3550a56e86a8d7af627eec55c91f34a Mon Sep 17 00:00:00 2001 From: naiba Date: Thu, 7 Jul 2022 11:50:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dashboard.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 3795e5e..0777b4a 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -25,12 +25,13 @@ jobs: fi id: extract_branch - - name: Build + - name: xgo build uses: crazy-max/ghaction-xgo@v2 with: xgo_version: latest go_version: 1.18 - dest: build + arm_version: 7 + dest: dist pkg: cmd/dashboard prefix: dashboard targets: linux/amd64,linux/arm64,linux/arm,linux/386,linux/s390x @@ -42,14 +43,13 @@ jobs: - name: move dist run: | - ls -al dist - tree dist mkdir -p target/linux/{arm,arm64,386,amd64,s390x} mkdir target/linux/arm/v7/ - mv dist/universal_linux_arm_7/dashboard target/linux/arm/v7/dashboard - mv dist/universal_linux_arm64/dashboard target/linux/arm64/dashboard - mv dist/universal_linux_amd64_v1/dashboard target/linux/amd64/dashboard - mv dist/universal_linux_s390x/dashboard target/linux/s390x/dashboard + mv dist/dashboard-linux-arm-7 target/linux/arm/v7/dashboard + mv dist/dashboard-linux-arm64 target/linux/arm64/dashboard + mv dist/dashboard-linux-386 target/linux/386/dashboard + mv dist/dashboard-linux-amd64 target/linux/amd64/dashboard + mv dist/dashboard-linux-s390x target/linux/s390x/dashboard - name: Log in to the GHCR uses: docker/login-action@master