Skip to content

Commit

Permalink
workflow: only restore packages for projects that are being built
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeFZ committed Nov 14, 2024
1 parent 5cd9478 commit 226d0df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
${{ runner.os }}-nuget-
- name: Restore NuGet packages
run: dotnet restore -r net9.0-windows
run: dotnet restore -r win-x64 ./Il2CppInspector.GUI

- name: Build GUI
run: dotnet publish ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj -c Release -r net9.0-windows --no-self-contained
Expand Down Expand Up @@ -65,10 +65,10 @@ jobs:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Install dependencies
run: dotnet restore -r ${{ matrix.rid }}
run: dotnet restore -r ${{ matrix.rid }} ./Il2CppInspector.CLI

- name: Build & Publish
run: dotnet publish ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }}
run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 226d0df

Please sign in to comment.