From 7e21e12e112209740589884b36692ee43809dbeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Wed, 31 Mar 2021 09:08:06 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20release=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0Linux386?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ff4f1a4..4857455c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,11 +47,17 @@ jobs: run: | CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -o windows_amd64/alist.exe alist.go + - name: Build linux_386 + run: | + sudo apt-get -y install libc6-dev-i386 + CC=gcc CGO_ENABLED=1 GOOS=linux GOARCH=386 go build -o linux_386/alist alist.go + - name: compress run: | tar -czvf alist_linux_amd64.tar.gz linux_amd64/alist conf.yml.example tar -czvf alist_linux_arm64.tar.gz linux_arm64/alist conf.yml.example tar -czvf alist_linux_arm.tar.gz linux_arm/alist conf.yml.example + tar -czvf alist_linux_386.tar.gz linux_386/alist conf.yml.example zip alist_windows_amd64.zip windows_amd64/alist.exe conf.yml.example - name: Build Changelog @@ -105,6 +111,17 @@ jobs: asset_name: alist_${{ steps.get_version.outputs.VERSION }}_linux_arm.tar.gz asset_content_type: application/gzip + - name: Upload alist_linux_386 + id: upload-release-linux-386 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: alist_linux_386.tar.gz + asset_name: alist_${{ steps.get_version.outputs.VERSION }}_linux_386.tar.gz + asset_content_type: application/gzip + - name: Upload alist_windows_amd64 id: upload-release-windows-amd64 uses: actions/upload-release-asset@v1