Skip to content

Commit 4da6a9a

Browse files
committed
[FIX] workflow cache remembers project objects
1 parent 1d4fdc7 commit 4da6a9a

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
key: ${{ runner.os }}-haxelib-${{ hashFiles('.github/workflows/main.yml') }}
2424
restore-keys: |
2525
${{ runner.os }}-haxelib-
26+
- name: Cache Build Artifacts
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
.haxelib
31+
export/release/linux/obj
32+
~/.lime
33+
key: ${{ runner.os }}-build-${{ hashFiles('source/**/*.hx', 'Project.xml') }}
34+
restore-keys: |
35+
${{ runner.os }}-build-
2636
- run: |
2737
haxe -version
2838
haxelib install --quiet hxnodejs
@@ -89,6 +99,16 @@ jobs:
8999
key: ${{ runner.os }}-haxelib-${{ hashFiles('.github/workflows/main.yml') }}
90100
restore-keys: |
91101
${{ runner.os }}-haxelib-
102+
- name: Cache Build Artifacts
103+
uses: actions/cache@v3
104+
with:
105+
path: |
106+
.haxelib
107+
export/release/windows/obj
108+
~/.lime
109+
key: ${{ runner.os }}-build-${{ hashFiles('source/**/*.hx', 'Project.xml') }}
110+
restore-keys: |
111+
${{ runner.os }}-build-
92112
- name: Install and Setup Haxelib
93113
run: |
94114
haxelib setup ~/haxelib
@@ -166,6 +186,16 @@ jobs:
166186
key: ${{ runner.os }}-haxelib-${{ hashFiles('.github/workflows/main.yml') }}
167187
restore-keys: |
168188
${{ runner.os }}-haxelib-
189+
- name: Cache Build Artifacts
190+
uses: actions/cache@v3
191+
with:
192+
path: |
193+
.haxelib
194+
export/release/macos/obj
195+
~/.lime
196+
key: ${{ runner.os }}-build-${{ hashFiles('source/**/*.hx', 'Project.xml') }}
197+
restore-keys: |
198+
${{ runner.os }}-build-
169199
- name: Install and Setup Haxelib
170200
run: |
171201
haxelib setup ~/haxelib
@@ -236,6 +266,17 @@ jobs:
236266
restore-keys: |
237267
${{ runner.os }}-android-haxelib-
238268
${{ runner.os }}-haxelib-
269+
- name: Cache Build Artifacts
270+
uses: actions/cache@v3
271+
with:
272+
path: |
273+
.haxelib
274+
export/release/android/obj
275+
~/.lime
276+
key: ${{ runner.os }}-android-build-${{ hashFiles('source/**/*.hx', 'Project.xml') }}
277+
restore-keys: |
278+
${{ runner.os }}-android-build-
279+
${{ runner.os }}-build-
239280
- name: Install specific NDK version
240281
run: |
241282
echo "y" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager "ndk;21.4.7075529"
@@ -338,6 +379,17 @@ jobs:
338379
restore-keys: |
339380
${{ runner.os }}-ios-haxelib-
340381
${{ runner.os }}-haxelib-
382+
- name: Cache Build Artifacts
383+
uses: actions/cache@v3
384+
with:
385+
path: |
386+
.haxelib
387+
export/release/ios/obj
388+
~/.lime
389+
key: ${{ runner.os }}-ios-build-${{ hashFiles('source/**/*.hx', 'Project.xml') }}
390+
restore-keys: |
391+
${{ runner.os }}-ios-build-
392+
${{ runner.os }}-build-
341393
- name: Install and Setup Haxelib
342394
run: |
343395
haxelib setup ~/haxelib

0 commit comments

Comments
 (0)