[ci] Use nuget cache
This commit is contained in:
parent
10561ffdc5
commit
aec5fa2698
3 changed files with 3 additions and 5 deletions
|
@ -7,6 +7,7 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
image: mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
||||||
|
options: --volume /opt/iceshrimp-cache/nuget:/root/.nuget
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
run: git clone ${{ github.event.repository.clone_url }} --branch=${{ github.ref_name }} --depth=1 /iceshrimp
|
run: git clone ${{ github.event.repository.clone_url }} --branch=${{ github.ref_name }} --depth=1 /iceshrimp
|
||||||
|
|
|
@ -7,6 +7,7 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim
|
image: mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim
|
||||||
|
options: --volume /opt/iceshrimp-cache/nuget:/root/.nuget
|
||||||
permissions:
|
permissions:
|
||||||
releases: write
|
releases: write
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -8,14 +8,10 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
image: mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
||||||
|
options: --volume /opt/iceshrimp-cache/nuget:/root/.nuget
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
run: git clone ${{ github.event.repository.clone_url }} --branch=${{ github.ref_name }} --depth=1 /iceshrimp
|
run: git clone ${{ github.event.repository.clone_url }} --branch=${{ github.ref_name }} --depth=1 /iceshrimp
|
||||||
- name: Build backend & frontend
|
|
||||||
run: |
|
|
||||||
cd /iceshrimp/Iceshrimp.Backend
|
|
||||||
dotnet restore
|
|
||||||
dotnet build
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cd /iceshrimp
|
cd /iceshrimp
|
||||||
|
|
Loading…
Add table
Reference in a new issue