Skip to content

Commit 54eea79

Browse files
committed
Disable Caching, several compiler flags
1 parent 4aaa3ba commit 54eea79

4 files changed

Lines changed: 217 additions & 228 deletions

File tree

.github/workflows/linux.yml

Lines changed: 70 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ jobs:
1616
uses: krdlab/setup-haxe@v2
1717
with:
1818
haxe-version: 4.3.7
19-
- name: Restore existing build cache for faster compilation
20-
uses: actions/cache@v4.2.3
21-
with:
22-
# not caching the bin folder to prevent asset duplication and stuff like that
23-
key: cache-build-linux
24-
path: |
25-
.haxelib/
26-
export/release/linux/haxe/
27-
export/release/linux/obj/
19+
# - name: Restore existing build cache for faster compilation
20+
# uses: actions/cache@v4.2.3
21+
# with:
22+
# # not caching the bin folder to prevent asset duplication and stuff like that
23+
# key: cache-build-linux
24+
# path: |
25+
# .haxelib/
26+
# export/release/linux/obj/
2827
- run: |
2928
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
3029
- name: Installing LibVLC
@@ -48,34 +47,33 @@ jobs:
4847
with:
4948
name: Codename Engine
5049
path: export/release/linux/bin/
51-
- name: Clearing already existing cache
52-
uses: actions/github-script@v6
53-
with:
54-
script: |
55-
const caches = await github.rest.actions.getActionsCacheList({
56-
owner: context.repo.owner,
57-
repo: context.repo.repo,
58-
})
59-
for (const cache of caches.data.actions_caches) {
60-
if (cache.key == "cache-build-linux") {
61-
console.log('Clearing ' + cache.key + '...')
62-
await github.rest.actions.deleteActionsCacheById({
63-
owner: context.repo.owner,
64-
repo: context.repo.repo,
65-
cache_id: cache.id,
66-
})
67-
console.log("Cache cleared.")
68-
}
69-
}
70-
- name: Uploading new cache
71-
uses: actions/cache@v4.2.3
72-
with:
73-
# caching again since for some reason it doesnt work with the first post cache shit
74-
key: cache-build-linux
75-
path: |
76-
.haxelib/
77-
export/release/linux/haxe/
78-
export/release/linux/obj/
50+
# - name: Clearing already existing cache
51+
# uses: actions/github-script@v6
52+
# with:
53+
# script: |
54+
# const caches = await github.rest.actions.getActionsCacheList({
55+
# owner: context.repo.owner,
56+
# repo: context.repo.repo,
57+
# })
58+
# for (const cache of caches.data.actions_caches) {
59+
# if (cache.key == "cache-build-linux") {
60+
# console.log('Clearing ' + cache.key + '...')
61+
# await github.rest.actions.deleteActionsCacheById({
62+
# owner: context.repo.owner,
63+
# repo: context.repo.repo,
64+
# cache_id: cache.id,
65+
# })
66+
# console.log("Cache cleared.")
67+
# }
68+
# }
69+
# - name: Uploading new cache
70+
# uses: actions/cache@v4.2.3
71+
# with:
72+
# # caching again since for some reason it doesnt work with the first post cache shit
73+
# key: cache-build-linux
74+
# path: |
75+
# .haxelib/
76+
# export/release/linux/obj/
7977

8078
# didnt compile debug in the same job or github would have said that job wasn't completed until debug was done too (debug uploads are not essential)
8179
debug_build:
@@ -90,15 +88,14 @@ jobs:
9088
uses: krdlab/setup-haxe@v2
9189
with:
9290
haxe-version: 4.3.7
93-
- name: Restore existing build cache for faster compilation
94-
uses: actions/cache@v4.2.3
95-
with:
96-
# not caching the bin folder to prevent asset duplication and stuff like that
97-
key: cache-build-linux-debug
98-
path: |
99-
.haxelib/
100-
export/debug/linux/haxe/
101-
export/debug/linux/obj/
91+
# - name: Restore existing build cache for faster compilation
92+
# uses: actions/cache@v4.2.3
93+
# with:
94+
# # not caching the bin folder to prevent asset duplication and stuff like that
95+
# key: cache-build-linux-debug
96+
# path: |
97+
# .haxelib/
98+
# export/debug/linux/obj/
10299
- run: |
103100
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
104101
- name: Installing LibVLC
@@ -117,31 +114,30 @@ jobs:
117114
with:
118115
name: Codename Engine Debug
119116
path: export/debug/linux/bin/
120-
- name: Clearing already existing cache
121-
uses: actions/github-script@v6
122-
with:
123-
script: |
124-
const caches = await github.rest.actions.getActionsCacheList({
125-
owner: context.repo.owner,
126-
repo: context.repo.repo,
127-
})
128-
for (const cache of caches.data.actions_caches) {
129-
if (cache.key == "cache-build-linux-debug") {
130-
console.log('Clearing ' + cache.key + '...')
131-
await github.rest.actions.deleteActionsCacheById({
132-
owner: context.repo.owner,
133-
repo: context.repo.repo,
134-
cache_id: cache.id,
135-
})
136-
console.log("Cache cleared.")
137-
}
138-
}
139-
- name: Uploading new cache
140-
uses: actions/cache@v4.2.3
141-
with:
142-
# caching again since for some reason it doesnt work with the first post cache shit
143-
key: cache-build-linux-debug
144-
path: |
145-
.haxelib/
146-
export/debug/linux/haxe/
147-
export/debug/linux/obj/
117+
# - name: Clearing already existing cache
118+
# uses: actions/github-script@v6
119+
# with:
120+
# script: |
121+
# const caches = await github.rest.actions.getActionsCacheList({
122+
# owner: context.repo.owner,
123+
# repo: context.repo.repo,
124+
# })
125+
# for (const cache of caches.data.actions_caches) {
126+
# if (cache.key == "cache-build-linux-debug") {
127+
# console.log('Clearing ' + cache.key + '...')
128+
# await github.rest.actions.deleteActionsCacheById({
129+
# owner: context.repo.owner,
130+
# repo: context.repo.repo,
131+
# cache_id: cache.id,
132+
# })
133+
# console.log("Cache cleared.")
134+
# }
135+
# }
136+
# - name: Uploading new cache
137+
# uses: actions/cache@v4.2.3
138+
# with:
139+
# # caching again since for some reason it doesnt work with the first post cache shit
140+
# key: cache-build-linux-debug
141+
# path: |
142+
# .haxelib/
143+
# export/debug/linux/obj/

.github/workflows/macos.yml

Lines changed: 70 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ jobs:
1616
uses: krdlab/setup-haxe@v2
1717
with:
1818
haxe-version: 4.3.7
19-
- name: Restore existing build cache for faster compilation
20-
uses: actions/cache@v4.2.3
21-
with:
22-
# not caching the bin folder to prevent asset duplication and stuff like that
23-
key: cache-build-mac
24-
path: |
25-
.haxelib/
26-
export/release/macos/haxe/
27-
export/release/macos/obj/
19+
# - name: Restore existing build cache for faster compilation
20+
# uses: actions/cache@v4.2.3
21+
# with:
22+
# # not caching the bin folder to prevent asset duplication and stuff like that
23+
# key: cache-build-mac
24+
# path: |
25+
# .haxelib/
26+
# export/release/macos/obj/
2827
- run: |
2928
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
3029
- name: Installing/Updating libraries
@@ -45,34 +44,33 @@ jobs:
4544
with:
4645
name: Codename Engine
4746
path: CodenameEngine.tar.gz
48-
- name: Clearing already existing cache
49-
uses: actions/github-script@v6
50-
with:
51-
script: |
52-
const caches = await github.rest.actions.getActionsCacheList({
53-
owner: context.repo.owner,
54-
repo: context.repo.repo,
55-
})
56-
for (const cache of caches.data.actions_caches) {
57-
if (cache.key == "cache-build-mac") {
58-
console.log('Clearing ' + cache.key + '...')
59-
await github.rest.actions.deleteActionsCacheById({
60-
owner: context.repo.owner,
61-
repo: context.repo.repo,
62-
cache_id: cache.id,
63-
})
64-
console.log("Cache cleared.")
65-
}
66-
}
67-
- name: Uploading new cache
68-
uses: actions/cache@v4.2.3
69-
with:
70-
# caching again since for some reason it doesnt work with the first post cache shit
71-
key: cache-build-mac
72-
path: |
73-
.haxelib/
74-
export/release/macos/haxe/
75-
export/release/macos/obj/
47+
# - name: Clearing already existing cache
48+
# uses: actions/github-script@v6
49+
# with:
50+
# script: |
51+
# const caches = await github.rest.actions.getActionsCacheList({
52+
# owner: context.repo.owner,
53+
# repo: context.repo.repo,
54+
# })
55+
# for (const cache of caches.data.actions_caches) {
56+
# if (cache.key == "cache-build-mac") {
57+
# console.log('Clearing ' + cache.key + '...')
58+
# await github.rest.actions.deleteActionsCacheById({
59+
# owner: context.repo.owner,
60+
# repo: context.repo.repo,
61+
# cache_id: cache.id,
62+
# })
63+
# console.log("Cache cleared.")
64+
# }
65+
# }
66+
# - name: Uploading new cache
67+
# uses: actions/cache@v4.2.3
68+
# with:
69+
# # caching again since for some reason it doesnt work with the first post cache shit
70+
# key: cache-build-mac
71+
# path: |
72+
# .haxelib/
73+
# export/release/macos/obj/
7674

7775
# didnt compile debug in the same job or github would have said that job wasn't completed until debug was done too (debug uploads are not essential)
7876
debug_build:
@@ -87,15 +85,14 @@ jobs:
8785
uses: krdlab/setup-haxe@v2
8886
with:
8987
haxe-version: 4.3.7
90-
- name: Restore existing build cache for faster compilation
91-
uses: actions/cache@v4.2.3
92-
with:
93-
# not caching the bin folder to prevent asset duplication and stuff like that
94-
key: cache-build-mac-debug
95-
path: |
96-
.haxelib/
97-
export/debug/macos/haxe/
98-
export/debug/macos/obj/
88+
# - name: Restore existing build cache for faster compilation
89+
# uses: actions/cache@v4.2.3
90+
# with:
91+
# # not caching the bin folder to prevent asset duplication and stuff like that
92+
# key: cache-build-mac-debug
93+
# path: |
94+
# .haxelib/
95+
# export/debug/macos/obj/
9996
- run: |
10097
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
10198
- name: Installing/Updating libraries
@@ -111,31 +108,30 @@ jobs:
111108
with:
112109
name: Codename Engine Debug
113110
path: CodenameEngine.tar.gz
114-
- name: Clearing already existing cache
115-
uses: actions/github-script@v6
116-
with:
117-
script: |
118-
const caches = await github.rest.actions.getActionsCacheList({
119-
owner: context.repo.owner,
120-
repo: context.repo.repo,
121-
})
122-
for (const cache of caches.data.actions_caches) {
123-
if (cache.key == "cache-build-mac-debug") {
124-
console.log('Clearing ' + cache.key + '...')
125-
await github.rest.actions.deleteActionsCacheById({
126-
owner: context.repo.owner,
127-
repo: context.repo.repo,
128-
cache_id: cache.id,
129-
})
130-
console.log("Cache cleared.")
131-
}
132-
}
133-
- name: Uploading new cache
134-
uses: actions/cache@v4.2.3
135-
with:
136-
# caching again since for some reason it doesnt work with the first post cache shit
137-
key: cache-build-mac-debug
138-
path: |
139-
.haxelib/
140-
export/debug/macos/haxe/
141-
export/debug/macos/obj/
111+
# - name: Clearing already existing cache
112+
# uses: actions/github-script@v6
113+
# with:
114+
# script: |
115+
# const caches = await github.rest.actions.getActionsCacheList({
116+
# owner: context.repo.owner,
117+
# repo: context.repo.repo,
118+
# })
119+
# for (const cache of caches.data.actions_caches) {
120+
# if (cache.key == "cache-build-mac-debug") {
121+
# console.log('Clearing ' + cache.key + '...')
122+
# await github.rest.actions.deleteActionsCacheById({
123+
# owner: context.repo.owner,
124+
# repo: context.repo.repo,
125+
# cache_id: cache.id,
126+
# })
127+
# console.log("Cache cleared.")
128+
# }
129+
# }
130+
# - name: Uploading new cache
131+
# uses: actions/cache@v4.2.3
132+
# with:
133+
# # caching again since for some reason it doesnt work with the first post cache shit
134+
# key: cache-build-mac-debug
135+
# path: |
136+
# .haxelib/
137+
# export/debug/macos/obj/

0 commit comments

Comments
 (0)