chore: fix env in task yaml and test new build action

pull/1638/head
Aaron Liu 2 years ago
parent b1b74b7be5
commit 7dfe8fb439

@ -24,32 +24,11 @@ jobs:
- name: Get dependencies and build - name: Get dependencies and build
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get -y install gcc-mingw-w64-x86-64 sh -c "$(curl -sSL https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross task release
sudo apt-get -y install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
chmod +x ./build.sh
./build.sh -r b
- name: Upload binary files (windows_amd64) - name: Upload binary files
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: cloudreve_windows_amd64 name: release_artifacts
path: release/cloudreve*windows_amd64.* path: release/*
- name: Upload binary files (linux_amd64)
uses: actions/upload-artifact@v2
with:
name: cloudreve_linux_amd64
path: release/cloudreve*linux_amd64.*
- name: Upload binary files (linux_arm)
uses: actions/upload-artifact@v2
with:
name: cloudreve_linux_arm
path: release/cloudreve*linux_arm.*
- name: Upload binary files (linux_arm64)
uses: actions/upload-artifact@v2
with:
name: cloudreve_linux_arm64
path: release/cloudreve*linux_arm64.*

@ -12,10 +12,9 @@ tasks:
clean-frontend: clean-frontend:
desc: Clean Frontend Build Cache desc: Clean Frontend Build Cache
cmds: cmds:
- rm -rf assets/build assets/node_modules assets.zip - rm -rf assets/build assets.zip
status: status:
- test ! -d assets/build - test ! -d assets/build
- test ! -d assets/node_modules
- test ! -f assets.zip - test ! -f assets.zip
clean-backend: clean-backend:
@ -39,16 +38,16 @@ tasks:
build-frontend: build-frontend:
desc: Build Frontend desc: Build Frontend
vars: env:
CI: false CI: false
GENERATE_SOURCEMAP: false GENERATE_SOURCEMAP: false
NODE_OPTIONS: --openssl-legacy-provider
dir: assets dir: assets
cmds: cmds:
- yarn install - yarn install --network-timeout 1000000
- yarn build - yarn build
- cd .. && zip -r - assets/build > assets.zip - cd .. && zip -r - assets/build > assets.zip
status: status:
- test -d node_modules
- test -d build - test -d build
build-backend: build-backend:
@ -412,3 +411,19 @@ tasks:
- task: windows-amd64-v4 - task: windows-amd64-v4
- task: windows-arm64 - task: windows-arm64
release:
desc: Build common platforms for release
env:
RELEASE_PACKING: true
cmds:
- task: clean
- task: build-frontend
- task: linux-amd64
- task: linux-armv5
- task: linux-armv6
- task: linux-armv7
- task: linux-armv8
- task: darwin-amd64
- task: darwin-arm64
- task: windows-amd64
- task: windows-arm64

@ -1 +1 @@
Subproject commit 09a5168b23349cb1d0201b544ba48ccb583886be Subproject commit d4dc124e9986d18096d54ec6f2b4b283de1536cc
Loading…
Cancel
Save