misc: run tests and debug builds in parallel

ref #456
This commit is contained in:
genteure 2023-06-17 20:31:25 +08:00
parent 72a90c890f
commit 52c2d4aef0
2 changed files with 9 additions and 6 deletions

View File

@ -42,7 +42,8 @@ jobs:
run: dotnet test -v m -c Release
build_wpf:
needs: test
# Tests can be run parallelly for debug builds to save time
# needs: test
runs-on: windows-latest
steps:
- name: Checkout
@ -74,7 +75,8 @@ jobs:
path: BililiveRecorder.WPF/bin/Release
build_cli:
needs: test
# Tests can be run parallelly for debug builds to save time
# needs: test
strategy:
matrix:
rid: [any, linux-arm, linux-arm64, linux-x64, osx-x64, osx-arm64, win-x64]
@ -117,7 +119,8 @@ jobs:
path: BililiveRecorder.Cli/publish/${{ matrix.rid }}/Release
build_docker:
needs: test
# Tests can be run parallelly for debug builds to save time
# needs: test
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
permissions:

View File

@ -39,7 +39,7 @@ jobs:
run: dotnet test -v m -c Release
release_wpf:
needs: test
needs: test # Tests must be passed before releasing
strategy:
matrix:
build_configuration: [Release]
@ -81,7 +81,7 @@ jobs:
asset_content_type: application/zip
release_cli:
needs: test
needs: test # Tests must be passed before releasing
strategy:
matrix:
rid: [any, linux-arm, linux-arm64, linux-x64, osx-x64, osx-arm64, win-x64]
@ -128,7 +128,7 @@ jobs:
asset_content_type: application/zip
release_docker:
needs: test
needs: test # Tests must be passed before releasing
runs-on: ubuntu-latest
permissions:
contents: read