Skip to content

Commit 58efa0b

Browse files
committed
cache .NET workloads
1 parent dcee145 commit 58efa0b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ jobs:
5959
with:
6060
dotnet-version: '8.0.x'
6161

62+
- name: Cache .NET workloads
63+
id: dotnet-workload-cache
64+
uses: actions/cache@v4
65+
with:
66+
path: |
67+
~/.dotnet
68+
~/.nuget/packages
69+
key: dotnet-workloads-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
70+
restore-keys: |
71+
dotnet-workloads-${{ runner.os }}-
72+
6273
- name: Install required .NET workloads
6374
run: |
6475
dotnet workload install android ios wasm-tools
@@ -68,7 +79,7 @@ jobs:
6879
echo "Cloning native SDKs..."
6980
cd ..
7081
git clone https://github.com/OneSignal/OneSignal-iOS-SDK.git
71-
cd OneSignal-iOS-SDK && git checkout ${{ inputs.ios_version }} && cd OneSignal-DotNet-SDK
82+
cd OneSignal-iOS-SDK && git checkout ${{ inputs.ios_version }} && cd ../OneSignal-DotNet-SDK
7283
7384
echo "Running update_native_binaries.sh..."
7485
chmod +x ./update_native_binaries.sh

0 commit comments

Comments
 (0)