build-linux-arm-appimage.yml 867 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: CI 自动构建linux arm electron 包,并保存结果
  2. on:
  3. push:
  4. branches:
  5. - master
  6. repository_dispatch:
  7. types:
  8. - webhook_trigger
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: 检出代码
  14. uses: actions/checkout@v4
  15. - name: 设置 Node.js 环境
  16. uses: actions/setup-node@v4
  17. with:
  18. node-version: '20'
  19. - name: 安装依赖
  20. run: npm install --force
  21. - name: 运行自定义构建脚本
  22. run: node .build/h5_for_electron.build.linux.arm.js
  23. - name: 切换 Node.js 18 环境
  24. uses: actions/setup-node@v4
  25. with:
  26. node-version: '18'
  27. - name: 构建 PKG
  28. run: npm run pkg
  29. - name: 上传构建结果
  30. uses: actions/upload-artifact@v4
  31. with:
  32. name: build-output
  33. path: ./dist