Skip to content

Commit eb893e1

Browse files
committed
Fix build workflow
- Downgrade Ubuntu - Tweak NuGet workarounds
1 parent b19f760 commit eb893e1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
@@ -25,16 +25,15 @@ jobs:
2525
id: bepinexversion
2626
run: echo "bepinexversion=$(./scripts/get-dep-version.sh denikson-BepInExPack_Valheim)" >> $GITHUB_OUTPUT
2727

28+
- name: Create NuGet config path
29+
# If we don't make this in advance, NuGet will somehow initialize it in a way that makes it unreadable to NuGet. :shrug:
30+
run: mkdir -p ~/.config/NuGet/ && touch ~/.config/NuGet/NuGet.Config
31+
2832
- name: Get build commands
2933
run: scripts/install-linux-tools.sh
3034

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

3938
- name: Cache Valheim
4039
id: cachevalheim

0 commit comments

Comments
 (0)