mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
Update GitHub worker workflow
This commit is contained in:
parent
43ed74919b
commit
bc8ec0b000
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
@ -23,15 +23,9 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Cache Nuget Packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ github.workspace }}/.nuget/packages
|
||||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nuget-
|
||||
- uses: actions/setup-dotnet@v2
|
||||
- name: Restore Packages
|
||||
run: dotnet restore -v m
|
||||
run: dotnet restore -v m --disable-parallel
|
||||
- name: Run Tests
|
||||
run: dotnet test -v m
|
||||
|
||||
|
@ -46,15 +40,8 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Cache Nuget Packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ github.workspace }}/.nuget/packages
|
||||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nuget-
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Restore Packages
|
||||
run: nuget restore -Verbosity quiet
|
||||
- name: Build WPF
|
||||
|
@ -77,15 +64,9 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Cache Nuget Packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ github.workspace }}/.nuget/packages
|
||||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nuget-
|
||||
- uses: actions/setup-dotnet@v2
|
||||
- name: Restore Packages
|
||||
run: dotnet restore -v m
|
||||
run: dotnet restore -v m --disable-parallel
|
||||
- name: Build CLI
|
||||
if: ${{ matrix.rid == 'any' }}
|
||||
run: dotnet publish -c ${{ matrix.build_configuration }} BililiveRecorder.Cli/BililiveRecorder.Cli.csproj
|
||||
|
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -22,8 +22,9 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-dotnet@v2
|
||||
- name: Restore Packages
|
||||
run: dotnet restore -v m
|
||||
run: dotnet restore -v m --disable-parallel
|
||||
- name: Run Tests
|
||||
run: dotnet test -v m
|
||||
|
||||
|
@ -80,8 +81,9 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-dotnet@v2
|
||||
- name: Restore Packages
|
||||
run: dotnet restore -v m
|
||||
run: dotnet restore -v m --disable-parallel
|
||||
- name: Build CLI
|
||||
if: ${{ matrix.rid == 'any' }}
|
||||
run: dotnet publish -c ${{ matrix.build_configuration }} BililiveRecorder.Cli/BililiveRecorder.Cli.csproj
|
||||
|
|
Loading…
Reference in New Issue
Block a user