Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
# Try to restore assemblies from cache first (for external PRs)
# Cache key includes assembly branch to separate beta from main
# v1 suffix allows cache invalidation by bumping version
- name: Cache Game Assemblies
- name: Restore Game Assemblies from Cache
id: cache-assemblies
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: S1API/ScheduleOneAssemblies
key: game-assemblies-v1-${{ steps.assembly-branch.outputs.branch }}-${{ hashFiles('S1API/S1API.csproj') }}
Expand Down Expand Up @@ -273,6 +273,14 @@ jobs:
echo "coverage-badge.md not found, skipping README update"
fi

# Save cache even if build fails (to enable beta cache priming)
- name: Save Game Assemblies to Cache
uses: actions/cache/save@v4
if: always() && steps.cache-assemblies.outputs.cache-hit != 'true'
with:
path: S1API/ScheduleOneAssemblies
key: game-assemblies-v1-${{ steps.assembly-branch.outputs.branch }}-${{ hashFiles('S1API/S1API.csproj') }}

- name: Coverage Skipped Notice
if: steps.verify-assemblies.outputs.has_assemblies != 'true'
run: |
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ jobs:
# Try to restore assemblies from cache first (for external PRs)
# Cache key includes assembly branch to separate beta from main
# v1 suffix allows cache invalidation by bumping version
- name: Cache Game Assemblies
- name: Restore Game Assemblies from Cache
id: cache-assemblies
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: S1API/ScheduleOneAssemblies
key: game-assemblies-v1-${{ steps.assembly-branch.outputs.branch }}-${{ hashFiles('S1API/S1API.csproj') }}
Expand Down Expand Up @@ -240,6 +240,14 @@ jobs:
path: ./S1API/_site
if: github.event_name != 'pull_request'

# Save cache even if build fails (to enable beta cache priming)
- name: Save Game Assemblies to Cache
uses: actions/cache/save@v4
if: always() && steps.cache-assemblies.outputs.cache-hit != 'true'
with:
path: S1API/ScheduleOneAssemblies
key: game-assemblies-v1-${{ steps.assembly-branch.outputs.branch }}-${{ hashFiles('S1API/S1API.csproj') }}

deploy:
environment:
name: github-pages
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/il2cpp-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
# Try to restore assemblies from cache first (for external PRs)
# Cache key includes assembly branch to separate beta from main
# v1 suffix allows cache invalidation by bumping version
- name: Cache IL2CPP Game Assemblies
- name: Restore IL2CPP Game Assemblies from Cache
id: cache-il2cpp-assemblies
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: S1API/ScheduleOneAssemblies
key: il2cpp-game-assemblies-v1-${{ steps.assembly-branch.outputs.branch }}-${{ hashFiles('S1API/S1API.csproj') }}
Expand Down Expand Up @@ -382,6 +382,14 @@ jobs:
name: S1API-Il2Cpp
path: S1API/bin/Il2CppMelon/net6.0/S1API.dll

# Save cache even if build fails (to enable beta cache priming)
- name: Save IL2CPP Game Assemblies to Cache
uses: actions/cache/save@v4
if: always() && steps.cache-il2cpp-assemblies.outputs.cache-hit != 'true'
with:
path: S1API/ScheduleOneAssemblies
key: il2cpp-game-assemblies-v1-${{ steps.assembly-branch.outputs.branch }}-${{ hashFiles('S1API/S1API.csproj') }}

- name: Build Summary
if: always()
run: |
Expand Down
1 change: 1 addition & 0 deletions S1API/S1API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[assembly: MelonPriority(Int32.MinValue)]
// Marked as incompatible as it breaks base game apps (causes them to show the mod manager instead of the base game app)
// See https://www.nexusmods.com/schedule1/mods/1484?tab=bugs
// Testing beta cache
[assembly: MelonIncompatibleAssemblies("ModManager&PhoneApp")]
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
namespace S1API
Expand Down