调整skin.xsd,非容器类元素不允许嵌套其他元素 #867
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 | |
| # Controls when the action will run. | |
| # Events list: https://docs.github.com/en/actions/reference/events-that-trigger-workflows | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| build-x64: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check Out | |
| uses: actions/checkout@v4 | |
| # 所有版本链接:https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-history | |
| #- name: 下载 vs_enterprise.exe | |
| # run: Invoke-WebRequest "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile vs_enterprise.exe | |
| # 组件列表:https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise?view=vs-2022 | |
| # 命令行选项:https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 | |
| #- name: 安装需要的组件 | |
| # run: | | |
| # Start-Process -Wait vs_enterprise.exe -ArgumentList "--quiet", "--force", "--norestart", ` | |
| # "--add", "Microsoft.VisualStudio.Component.VC.CoreIde", ` | |
| # "--add", "Microsoft.VisualStudio.Component.IntelliCode", ` | |
| # "--add", "Microsoft.VisualStudio.Component.Windows10SDK", ` | |
| # "--add", "Microsoft.Component.VC.Runtime.UCRTSDK", ` | |
| # "--add", "Microsoft.VisualStudio.Component.VC.ATL", ` | |
| # "--add", "Microsoft.VisualStudio.Component.VC.ATLMFC", ` | |
| # "--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.MFC" | |
| - name: 设置 msbuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: 编译 | |
| run: msbuild -t:Build '-p:Configuration=Release;platform=x64' -m:4 | |
| - name: 复制文件到 Release 文件夹 | |
| run: cp -R ./MusicPlayer2/language/ ./x64/Release/ | |
| - name: 上传文件 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MusicPlayer2.x64 | |
| path: | | |
| ./x64/Release/*.exe | |
| ./x64/Release/*.dll | |
| ./x64/Release/language/ | |
| - name: 打包其他文件 | |
| run: | | |
| cd x64/Release | |
| 7z a -mx9 '../../MusicPlayer2.x64.other.7z' '-x!*.exe' '-x!*.dll' './*' | |
| - name: 上传其他文件 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MusicPlayer2.x64.other | |
| path: ./MusicPlayer2.x64.other.7z | |
| build-x86: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check Out | |
| uses: actions/checkout@v4 | |
| # 所有版本链接:https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-history | |
| #- name: 下载 vs_enterprise.exe | |
| # run: Invoke-WebRequest "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile vs_enterprise.exe | |
| # 组件列表:https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise?view=vs-2022 | |
| # 命令行选项:https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 | |
| #- name: 安装需要的组件 | |
| # run: | | |
| # Start-Process -Wait vs_enterprise.exe -ArgumentList "--quiet", "--force", "--norestart", ` | |
| # "--add", "Microsoft.VisualStudio.Component.VC.CoreIde", ` | |
| # "--add", "Microsoft.VisualStudio.Component.IntelliCode", ` | |
| # "--add", "Microsoft.VisualStudio.Component.Windows10SDK", ` | |
| # "--add", "Microsoft.Component.VC.Runtime.UCRTSDK", ` | |
| # "--add", "Microsoft.VisualStudio.Component.VC.ATL", ` | |
| # "--add", "Microsoft.VisualStudio.Component.VC.ATLMFC", ` | |
| # "--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.MFC" | |
| - name: 设置 msbuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: 编译 | |
| run: msbuild -t:Build '-p:Configuration=Release;platform=x86' -m:4 | |
| - name: 复制文件到 Release 文件夹 | |
| run: cp -R ./MusicPlayer2/language/ ./Release/ | |
| - name: 上传文件 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MusicPlayer2.x86 | |
| path: | | |
| ./Release/*.exe | |
| ./Release/*.dll | |
| ./Release/language/ | |
| - name: 打包其他文件 | |
| run: | | |
| cd Release | |
| 7z a -mx9 './../MusicPlayer2.x86.other.7z' '-x!*.exe' '-x!*.dll' './*' | |
| - name: 上传其他文件 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MusicPlayer2.x86.other | |
| path: ./MusicPlayer2.x86.other.7z |