👷 update

This commit is contained in:
naiba 2022-07-07 11:50:25 +08:00
parent 3ceb286f2c
commit 468257ebd3

View File

@ -25,12 +25,13 @@ jobs:
fi fi
id: extract_branch id: extract_branch
- name: Build - name: xgo build
uses: crazy-max/ghaction-xgo@v2 uses: crazy-max/ghaction-xgo@v2
with: with:
xgo_version: latest xgo_version: latest
go_version: 1.18 go_version: 1.18
dest: build arm_version: 7
dest: dist
pkg: cmd/dashboard pkg: cmd/dashboard
prefix: dashboard prefix: dashboard
targets: linux/amd64,linux/arm64,linux/arm,linux/386,linux/s390x targets: linux/amd64,linux/arm64,linux/arm,linux/386,linux/s390x
@ -42,14 +43,13 @@ jobs:
- name: move dist - name: move dist
run: | run: |
ls -al dist
tree dist
mkdir -p target/linux/{arm,arm64,386,amd64,s390x} mkdir -p target/linux/{arm,arm64,386,amd64,s390x}
mkdir target/linux/arm/v7/ mkdir target/linux/arm/v7/
mv dist/universal_linux_arm_7/dashboard target/linux/arm/v7/dashboard mv dist/dashboard-linux-arm-7 target/linux/arm/v7/dashboard
mv dist/universal_linux_arm64/dashboard target/linux/arm64/dashboard mv dist/dashboard-linux-arm64 target/linux/arm64/dashboard
mv dist/universal_linux_amd64_v1/dashboard target/linux/amd64/dashboard mv dist/dashboard-linux-386 target/linux/386/dashboard
mv dist/universal_linux_s390x/dashboard target/linux/s390x/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 - name: Log in to the GHCR
uses: docker/login-action@master uses: docker/login-action@master