更新版本至3.0-11,添加EditorConfig文件,优化Python脚本中的异常处理,重构文件上传逻辑,删除未使用的脚本文件 #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- "x64-7.0" | |
- "aarch64-7.0" | |
include: | |
- target: x64-7.0 | |
dsm_ver: 7.0 | |
- target: aarch64-7.0 | |
dsm_ver: 7.0 | |
steps: | |
- uses: actions/checkout@v4 | |
# Install Node.js | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' # Specify the Node.js version you need | |
# Install npm dependencies (including Webpack) | |
- name: Install Dependencies | |
run: npm install | |
# Run Webpack build | |
- name: Webpack Build | |
run: npm run build | |
- name: Checkout SynoCommunity Source and Docker Image | |
run: | | |
git clone https://github.com/SynoCommunity/spksrc.git /home/runner/work/spksrc | |
docker pull ghcr.io/synocommunity/spksrc | |
- name: Install UPX | |
uses: crazy-max/ghaction-upx@v3 | |
with: | |
install-only: true | |
- name: Build Package | |
run: | | |
workdir=$(pwd) | |
docker run -v /home/runner/work/spksrc:/spksrc \ | |
-v $workdir:/spksrc/spk/rr-manager \ | |
-v $workdir/packages:/spksrc/packages \ | |
-w /spksrc/spk/rr-manager \ | |
ghcr.io/synocommunity/spksrc \ | |
make arch-${{ matrix.target }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: packages/*.spk | |
- name: Save Primes | |
id: cache-primes-save | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
/home/runner/work/spksrc/distrib | |
key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} |