Skip to content

Commit 6951ac8

Browse files
committed
Fix actions cache?
1 parent 56f53c7 commit 6951ac8

3 files changed

Lines changed: 16 additions & 22 deletions

File tree

.github/workflows/linux.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ jobs:
99
permissions: write-all
1010
runs-on: ubuntu-24.04
1111
steps:
12-
- name: Pulling the source
13-
uses: actions/checkout@v2
12+
- name: Pulling the new commit
13+
uses: actions/checkout@v4
1414
- name: Setting up Haxe
1515
uses: krdlab/setup-haxe@v2
1616
with:
1717
haxe-version: 4.3.7
1818
- name: Restore existing build cache for faster compilation
19-
uses: actions/cache@v3
19+
uses: actions/cache@v4.2.3
2020
with:
2121
# not caching the bin folder to prevent asset duplication and stuff like that
2222
key: cache-build-linux
2323
path: |
2424
.haxelib/
2525
export/release/linux/haxe/
2626
export/release/linux/obj/
27-
restore-keys: |
28-
cache-build-linux
27+
- run: |
28+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
2929
- name: Installing LibVLC
3030
run: |
3131
sudo apt-get install libvlc-dev libvlccore-dev
@@ -67,13 +67,11 @@ jobs:
6767
}
6868
}
6969
- name: Uploading new cache
70-
uses: actions/cache@v3
70+
uses: actions/cache@v4.2.3
7171
with:
7272
# caching again since for some reason it doesnt work with the first post cache shit
7373
key: cache-build-linux
7474
path: |
7575
.haxelib/
7676
export/release/linux/haxe/
7777
export/release/linux/obj/
78-
restore-keys: |
79-
cache-build-linux

.github/workflows/macos.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ jobs:
1010
runs-on: macos-13
1111
steps:
1212
- name: Pulling the new commit
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
- name: Setting up Haxe
1515
uses: krdlab/setup-haxe@v2
1616
with:
1717
haxe-version: 4.3.7
1818
- name: Restore existing build cache for faster compilation
19-
uses: actions/cache@v3
19+
uses: actions/cache@v4.2.3
2020
with:
2121
# not caching the bin folder to prevent asset duplication and stuff like that
2222
key: cache-build-mac
2323
path: |
2424
.haxelib/
2525
export/release/macos/haxe/
2626
export/release/macos/obj/
27-
restore-keys: |
28-
cache-build-mac
27+
- run: |
28+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
2929
- name: Installing/Updating libraries
3030
run: |
3131
haxe -cp commandline -D analyzer-optimize --run Main setup -s
@@ -64,13 +64,11 @@ jobs:
6464
}
6565
}
6666
- name: Uploading new cache
67-
uses: actions/cache@v3
67+
uses: actions/cache@v4.2.3
6868
with:
6969
# caching again since for some reason it doesnt work with the first post cache shit
7070
key: cache-build-mac
7171
path: |
7272
.haxelib/
7373
export/release/macos/haxe/
7474
export/release/macos/obj/
75-
restore-keys: |
76-
cache-build-mac

.github/workflows/windows.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ jobs:
1010
runs-on: windows-latest
1111
steps:
1212
- name: Pulling the new commit
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
- name: Setting up Haxe
1515
uses: krdlab/setup-haxe@v2
1616
with:
1717
haxe-version: 4.3.7
1818
- name: Restore existing build cache for faster compilation
19-
uses: actions/cache@v3
19+
uses: actions/cache@v4.2.3
2020
with:
2121
# not caching the bin folder to prevent asset duplication and stuff like that
2222
key: cache-build-windows
2323
path: |
2424
.haxelib/
2525
export/release/windows/haxe/
2626
export/release/windows/obj/
27-
restore-keys: |
28-
cache-build-windows
27+
- run: |
28+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
2929
- name: Installing/Updating libraries
3030
run: |
3131
haxe -cp commandline -D analyzer-optimize --run Main setup -s --no-vscheck
@@ -62,13 +62,11 @@ jobs:
6262
}
6363
}
6464
- name: Uploading new cache
65-
uses: actions/cache@v3
65+
uses: actions/cache@v4.2.3
6666
with:
6767
# caching again since for some reason it doesnt work with the first post cache shit
6868
key: cache-build-windows
6969
path: |
7070
.haxelib/
7171
export/release/windows/haxe/
7272
export/release/windows/obj/
73-
restore-keys: |
74-
cache-build-windows

0 commit comments

Comments
 (0)