fix: 调整停止引擎时释放设备的顺序,避免资源访问问题 #7
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: | |
| branches: [master] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore KeyAsio.Net.slnx | |
| - name: Build | |
| run: dotnet build KeyAsio.Net.slnx --configuration Release --no-restore | |
| - name: Test application behavior | |
| run: dotnet test tests/KeyAsio.UnitTests/KeyAsio.UnitTests.csproj --configuration Release --no-build | |
| - name: Test audio primitives | |
| run: dotnet test tests/AudioTests/AudioTests.csproj --configuration Release --no-build |