Skip to content

Commit 6d3243b

Browse files
committed
Merge branch 'main' of github.com:CodenameCrew/CodenameEngine
2 parents 0cfb3e5 + 9d96400 commit 6d3243b

90 files changed

Lines changed: 2085 additions & 901 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.git-blame-ignore-revs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ f8b20774e3f035eeddb9211a28a391b20db74456
3737

3838
# Revert a revert (scripted cutscene path)
3939
d73f86d26ec2dbf031c01f588ba4be11842db09c
40-
fe0ab0aa454f4ae12ced9502db8a01e7bca3e04c
40+
fe0ab0aa454f4ae12ced9502db8a01e7bca3e04c
41+
42+
# Forgot the # in the commit message
43+
484bbcb22aa8f28b62912abb6d8c89fb58e63889

.github/workflows/linux.yml

Lines changed: 77 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1+
name: Linux Builds
12

2-
name: Linux Build
33
on:
44
push:
55
workflow_dispatch:
6+
67
jobs:
78
build:
89
name: Linux Build
910
permissions: write-all
1011
runs-on: ubuntu-24.04
1112
steps:
12-
- name: Pulling the source
13-
uses: actions/checkout@v2
13+
- name: Pulling the new commit
14+
uses: actions/checkout@v4
1415
- name: Setting up Haxe
1516
uses: krdlab/setup-haxe@v2
1617
with:
1718
haxe-version: 4.3.7
1819
- name: Restore existing build cache for faster compilation
19-
uses: actions/cache@v3
20+
uses: actions/cache@v4.2.3
2021
with:
2122
# not caching the bin folder to prevent asset duplication and stuff like that
2223
key: cache-build-linux
2324
path: |
2425
.haxelib/
2526
export/release/linux/haxe/
2627
export/release/linux/obj/
27-
restore-keys: |
28-
cache-build-linux
28+
- run: |
29+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
2930
- name: Installing LibVLC
3031
run: |
3132
sudo apt-get install libvlc-dev libvlccore-dev
@@ -67,13 +68,80 @@ jobs:
6768
}
6869
}
6970
- name: Uploading new cache
70-
uses: actions/cache@v3
71+
uses: actions/cache@v4.2.3
7172
with:
7273
# caching again since for some reason it doesnt work with the first post cache shit
7374
key: cache-build-linux
7475
path: |
7576
.haxelib/
7677
export/release/linux/haxe/
7778
export/release/linux/obj/
78-
restore-keys: |
79-
cache-build-linux
79+
80+
# 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)
81+
debug_build:
82+
name: Linux Debug Build
83+
permissions: write-all
84+
runs-on: ubuntu-24.04
85+
needs: build # since its low priority, it'll run after, so actions will concentrate first on normal builds
86+
steps:
87+
- name: Pulling the new commit
88+
uses: actions/checkout@v4
89+
- name: Setting up Haxe
90+
uses: krdlab/setup-haxe@v2
91+
with:
92+
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/
102+
- run: |
103+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
104+
- name: Installing LibVLC
105+
run: |
106+
sudo apt-get install libvlc-dev libvlccore-dev
107+
- name: Installing/Updating libraries
108+
run: |
109+
haxe -cp commandline -D analyzer-optimize --run Main setup -s
110+
- name: Building the game
111+
run: |
112+
haxelib run lime build linux -debug
113+
# - name: Tar files
114+
# run: tar -zcvf CodenameEngine.tar.gz -C export/debug/linux/bin .
115+
- name: Uploading artifact (entire build)
116+
uses: actions/upload-artifact@v4
117+
with:
118+
name: Codename Engine Debug
119+
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/

.github/workflows/macos.yml

Lines changed: 75 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
1+
name: Mac OS Builds
12

2-
name: Mac OS Build
33
on:
44
push:
55
workflow_dispatch:
6+
67
jobs:
78
build:
89
name: Mac OS Build
910
permissions: write-all
10-
runs-on: macos-13
11+
runs-on: macos-14
1112
steps:
1213
- name: Pulling the new commit
13-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1415
- name: Setting up Haxe
1516
uses: krdlab/setup-haxe@v2
1617
with:
1718
haxe-version: 4.3.7
1819
- name: Restore existing build cache for faster compilation
19-
uses: actions/cache@v3
20+
uses: actions/cache@v4.2.3
2021
with:
2122
# not caching the bin folder to prevent asset duplication and stuff like that
2223
key: cache-build-mac
2324
path: |
2425
.haxelib/
2526
export/release/macos/haxe/
2627
export/release/macos/obj/
27-
restore-keys: |
28-
cache-build-mac
28+
- run: |
29+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
2930
- name: Installing/Updating libraries
3031
run: |
3132
haxe -cp commandline -D analyzer-optimize --run Main setup -s
3233
- name: Building the game
3334
run: |
34-
haxelib run lime build mac
35+
arch -x86_64 haxelib run lime build mac
3536
- name: Tar files
3637
run: tar -zcvf CodenameEngine.tar.gz -C export/release/macos/bin .
3738
- name: Uploading artifact (executable)
@@ -64,13 +65,77 @@ jobs:
6465
}
6566
}
6667
- name: Uploading new cache
67-
uses: actions/cache@v3
68+
uses: actions/cache@v4.2.3
6869
with:
6970
# caching again since for some reason it doesnt work with the first post cache shit
7071
key: cache-build-mac
7172
path: |
7273
.haxelib/
7374
export/release/macos/haxe/
7475
export/release/macos/obj/
75-
restore-keys: |
76-
cache-build-mac
76+
77+
# 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)
78+
debug_build:
79+
name: Mac OS Debug Build
80+
permissions: write-all
81+
runs-on: macos-14
82+
needs: build # since its low priority, it'll run after, so actions will concentrate first on normal builds
83+
steps:
84+
- name: Pulling the new commit
85+
uses: actions/checkout@v4
86+
- name: Setting up Haxe
87+
uses: krdlab/setup-haxe@v2
88+
with:
89+
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/
99+
- run: |
100+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
101+
- name: Installing/Updating libraries
102+
run: |
103+
haxe -cp commandline -D analyzer-optimize --run Main setup -s
104+
- name: Building the game
105+
run: |
106+
arch -x86_64 haxelib run lime build mac -debug
107+
- name: Tar files
108+
run: tar -zcvf CodenameEngine.tar.gz -C export/debug/macos/bin .
109+
- name: Uploading artifact (entire build)
110+
uses: actions/upload-artifact@v4
111+
with:
112+
name: Codename Engine Debug
113+
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/

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
name: Release ${{ github.event.inputs.tag_name }}
185185
draft: true
186186
prerelease: ${{ github.event.inputs.prerelease }}
187-
body: ${{ steps.build_body.outputs.body }}
187+
body: ${{ steps.build_body.outputs.body }}
188188
generate_release_notes: true
189189
files: |
190190
renamed/Codename Engine-Windows.zip

.github/workflows/windows.yml

Lines changed: 71 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1+
name: Windows Builds
12

2-
name: Windows Build
33
on:
44
push:
55
workflow_dispatch:
6+
67
jobs:
78
build:
89
name: Windows Build
910
permissions: write-all
1011
runs-on: windows-latest
1112
steps:
1213
- name: Pulling the new commit
13-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1415
- name: Setting up Haxe
1516
uses: krdlab/setup-haxe@v2
1617
with:
1718
haxe-version: 4.3.7
1819
- name: Restore existing build cache for faster compilation
19-
uses: actions/cache@v3
20+
uses: actions/cache@v4.2.3
2021
with:
2122
# not caching the bin folder to prevent asset duplication and stuff like that
2223
key: cache-build-windows
2324
path: |
2425
.haxelib/
2526
export/release/windows/haxe/
2627
export/release/windows/obj/
27-
restore-keys: |
28-
cache-build-windows
28+
- run: |
29+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
2930
- name: Installing/Updating libraries
3031
run: |
3132
haxe -cp commandline -D analyzer-optimize --run Main setup -s --no-vscheck
@@ -62,13 +63,75 @@ jobs:
6263
}
6364
}
6465
- name: Uploading new cache
65-
uses: actions/cache@v3
66+
uses: actions/cache@v4.2.3
6667
with:
6768
# caching again since for some reason it doesnt work with the first post cache shit
6869
key: cache-build-windows
6970
path: |
7071
.haxelib/
7172
export/release/windows/haxe/
7273
export/release/windows/obj/
73-
restore-keys: |
74-
cache-build-windows
74+
75+
# 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)
76+
debug_build:
77+
name: Windows Debug Build
78+
permissions: write-all
79+
runs-on: windows-latest
80+
needs: build # since its low priority, it'll run after, so actions will concentrate first on normal builds
81+
steps:
82+
- name: Pulling the new commit
83+
uses: actions/checkout@v4
84+
- name: Setting up Haxe
85+
uses: krdlab/setup-haxe@v2
86+
with:
87+
haxe-version: 4.3.7
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-windows-debug
93+
path: |
94+
.haxelib/
95+
export/debug/windows/haxe/
96+
export/debug/windows/obj/
97+
- run: |
98+
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
99+
- name: Installing/Updating libraries
100+
run: |
101+
haxe -cp commandline -D analyzer-optimize --run Main setup -s --no-vscheck
102+
- name: Building the game
103+
run: |
104+
haxelib run lime build windows -debug
105+
- name: Uploading artifact (entire build)
106+
uses: actions/upload-artifact@v4
107+
with:
108+
name: Codename Engine Debug
109+
path: export/debug/windows/bin
110+
- name: Clearing already existing cache
111+
uses: actions/github-script@v6
112+
with:
113+
script: |
114+
const caches = await github.rest.actions.getActionsCacheList({
115+
owner: context.repo.owner,
116+
repo: context.repo.repo,
117+
})
118+
for (const cache of caches.data.actions_caches) {
119+
if (cache.key == "cache-build-windows-debug") {
120+
console.log('Clearing ' + cache.key + '...')
121+
await github.rest.actions.deleteActionsCacheById({
122+
owner: context.repo.owner,
123+
repo: context.repo.repo,
124+
cache_id: cache.id,
125+
})
126+
console.log("Cache cleared.")
127+
}
128+
}
129+
- name: Uploading new cache
130+
uses: actions/cache@v4.2.3
131+
with:
132+
# caching again since for some reason it doesnt work with the first post cache shit
133+
key: cache-build-windows-debug
134+
path: |
135+
.haxelib/
136+
export/debug/windows/haxe/
137+
export/debug/windows/obj/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The engine uses [HaxeFlixel](https://haxeflixel.com/) and it mainly features:
6868
</details>
6969

7070
<details>
71-
<summary><h2>How to setup and build</h2></summary>
71+
<summary><h2>How to setup and build the engine and its documentation</h2></summary>
7272

7373
Check out our guide [HERE](building/README.md)
7474
</details>

0 commit comments

Comments
 (0)