Skip to content

Commit aeccd8a

Browse files
Merge branch 'internal-merge' into imgui
2 parents 3536210 + 5ee25fa commit aeccd8a

8 files changed

Lines changed: 540 additions & 230 deletions

File tree

.github/workflows/linux.yml

Lines changed: 76 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,80 @@ jobs:
6464
with:
6565
name: Codename Engine
6666
path: export/release/linux/bin/
67-
- name: Building the game (debug build)
68-
run: haxelib run lime build linux -debug -DCOMPILE_EXPERIMENTAL
69-
# - name: Tar files (debug build)
70-
# run: tar -zcvf CodenameEngineDebug.tar.gz -C export/debug/linux/bin .
71-
- name: Uploading artifact (executable)
72-
uses: actions/upload-artifact@v7
67+
# - name: Clearing already existing cache
68+
# uses: actions/github-script@v6
69+
# with:
70+
# script: |
71+
# const caches = await github.rest.actions.getActionsCacheList({
72+
# owner: context.repo.owner,
73+
# repo: context.repo.repo,
74+
# })
75+
# for (const cache of caches.data.actions_caches) {
76+
# if (cache.key == "cache-build-linux") {
77+
# console.log('Clearing ' + cache.key + '...')
78+
# await github.rest.actions.deleteActionsCacheById({
79+
# owner: context.repo.owner,
80+
# repo: context.repo.repo,
81+
# cache_id: cache.id,
82+
# })
83+
# console.log("Cache cleared.")
84+
# }
85+
# }
86+
# - name: Uploading new cache
87+
# uses: actions/cache@v4.2.3
88+
# with:
89+
# # caching again since for some reason it doesnt work with the first post cache shit
90+
# key: cache-build-linux
91+
# path: |
92+
# .haxelib/
93+
# export/release/linux/obj/
94+
95+
# 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)
96+
debug_build:
97+
name: Linux Debug Build
98+
permissions: write-all
99+
runs-on: ubuntu-24.04
100+
needs: build # since its low priority, it'll run after, so actions will concentrate first on normal builds
101+
steps:
102+
- name: Pulling the new commit
103+
uses: actions/checkout@v6
104+
- name: Setting up Haxe
105+
uses: krdlab/setup-haxe@v2
73106
with:
74-
name: Codename Engine Debug (Executable Only)
75-
path: export/debug/linux/bin/CodenameEngine
76-
- name: Uploading artifact (entire debug build)
107+
haxe-version: ${{ env.HAXE_VERSION }}
108+
# - name: Restore existing build cache for faster compilation
109+
# uses: actions/cache@v4.2.3
110+
# with:
111+
# # not caching the bin folder to prevent asset duplication and stuff like that
112+
# key: cache-build-linux-debug
113+
# path: |
114+
# .haxelib/
115+
# export/debug/linux/obj/
116+
- name: Installing Packages for Building Lime (TEMPORARY)
117+
run: |
118+
sudo apt-get update
119+
sudo apt-get install -qq \
120+
libegl1-mesa-dev libgl1-mesa-dev libibus-1.0-dev libdbus-1-dev libdecor-0-dev libudev-dev libgbm-dev libdrm-dev \
121+
libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libglu1-mesa-dev libmbedtls-dev libuv1-dev libsqlite3-dev \
122+
libx11-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbcommon-dev libxcursor-dev libxrandr-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxxf86vm-dev \
123+
libpulse-dev libasound2-dev libpipewire-0.3-dev \
124+
zlib1g-dev
125+
- name: Installing LibVLC
126+
run: |
127+
sudo apt-get install libvlc-dev libvlccore-dev
128+
- name: Installing/Updating libraries
129+
run: |
130+
haxe -cp commandline -D analyzer-optimize --run Main setup -si
131+
- name: Building the game
132+
run: |
133+
haxelib run lime setup -alias -y -nocffi
134+
haxelib run lime rebuild hxcpp
135+
haxelib run lime rebuild tools
136+
haxelib run lime rebuild linux -nocolor -release
137+
haxelib run lime build linux -debug -DCOMPILE_EXPERIMENTAL
138+
# - name: Tar files
139+
# run: tar -zcvf CodenameEngine.tar.gz -C export/debug/linux/bin .
140+
- name: Uploading artifact (entire build)
77141
uses: actions/upload-artifact@v7
78142
with:
79143
name: Codename Engine Debug
@@ -87,7 +151,7 @@ jobs:
87151
# repo: context.repo.repo,
88152
# })
89153
# for (const cache of caches.data.actions_caches) {
90-
# if (cache.key == "cache-build-linux") {
154+
# if (cache.key == "cache-build-linux-debug") {
91155
# console.log('Clearing ' + cache.key + '...')
92156
# await github.rest.actions.deleteActionsCacheById({
93157
# owner: context.repo.owner,
@@ -101,7 +165,7 @@ jobs:
101165
# uses: actions/cache@v4.2.3
102166
# with:
103167
# # caching again since for some reason it doesnt work with the first post cache shit
104-
# key: cache-build-linux
168+
# key: cache-build-linux-debug
105169
# path: |
106170
# .haxelib/
107-
# export/release/linux/obj/
171+
# export/debug/linux/obj/

0 commit comments

Comments
 (0)