Skip to content

Commit

Permalink
Fix build workflow
Browse files Browse the repository at this point in the history
 - Downgrade Ubuntu
 - Tweak NuGet workarounds
  • Loading branch information
joeyparrish committed Jan 7, 2025
1 parent b19f760 commit eb893e1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -25,16 +25,15 @@ jobs:
id: bepinexversion
run: echo "bepinexversion=$(./scripts/get-dep-version.sh denikson-BepInExPack_Valheim)" >> $GITHUB_OUTPUT

- name: Create NuGet config path
# If we don't make this in advance, NuGet will somehow initialize it in a way that makes it unreadable to NuGet. :shrug:
run: mkdir -p ~/.config/NuGet/ && touch ~/.config/NuGet/NuGet.Config

- name: Get build commands
run: scripts/install-linux-tools.sh

- name: Install NuGet dependencies
run: |
# Fixes weird permission errors that started in GitHub Actions
# environments on June 14th:
sudo chown -R $USER /tmp/NuGetScratch/
nuget restore Pokeheim.sln
run: nuget restore Pokeheim.sln

- name: Cache Valheim
id: cachevalheim
Expand Down

0 comments on commit eb893e1

Please sign in to comment.