重构SynoInfoTab,移除不必要的复选框,添加新的字段以支持磁盘和系统分区配置 #10
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: Upload to Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: packages-${{ matrix.target }} | |
| path: | | |
| packages/*.spk | |
| - 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 }} |