Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Pulling the new commit
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setting up Haxe
uses: krdlab/setup-haxe@v2
with:
haxe-version: ${{ env.HAXE_VERSION }}
# - name: Restore existing build cache for faster compilation
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # not caching the bin folder to prevent asset duplication and stuff like that
# key: cache-build-linux
Expand All @@ -37,8 +37,7 @@ jobs:
libegl1-mesa-dev libgl1-mesa-dev libibus-1.0-dev libdbus-1-dev libdecor-0-dev libudev-dev libgbm-dev libdrm-dev \
libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libglu1-mesa-dev libmbedtls-dev libuv1-dev libsqlite3-dev \
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 \
libpulse-dev libasound2-dev libpipewire-0.3-dev \
zlib1g-dev
libpulse-dev libasound2-dev libpipewire-0.3-dev
- name: Installing LibVLC
run: |
sudo apt-get install libvlc-dev libvlccore-dev
Expand All @@ -65,7 +64,7 @@ jobs:
name: Codename Engine
path: export/release/linux/bin/
# - name: Clearing already existing cache
# uses: actions/github-script@v6
# uses: actions/github-script@v9
# with:
# script: |
# const caches = await github.rest.actions.getActionsCacheList({
Expand All @@ -84,7 +83,7 @@ jobs:
# }
# }
# - name: Uploading new cache
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # caching again since for some reason it doesnt work with the first post cache shit
# key: cache-build-linux
Expand All @@ -100,13 +99,13 @@ jobs:
needs: build # since its low priority, it'll run after, so actions will concentrate first on normal builds
steps:
- name: Pulling the new commit
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Setting up Haxe
uses: krdlab/setup-haxe@v2
with:
haxe-version: ${{ env.HAXE_VERSION }}
# - name: Restore existing build cache for faster compilation
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # not caching the bin folder to prevent asset duplication and stuff like that
# key: cache-build-linux-debug
Expand All @@ -120,8 +119,7 @@ jobs:
libegl1-mesa-dev libgl1-mesa-dev libibus-1.0-dev libdbus-1-dev libdecor-0-dev libudev-dev libgbm-dev libdrm-dev \
libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libglu1-mesa-dev libmbedtls-dev libuv1-dev libsqlite3-dev \
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 \
libpulse-dev libasound2-dev libpipewire-0.3-dev \
zlib1g-dev
libpulse-dev libasound2-dev libpipewire-0.3-dev
- name: Installing LibVLC
run: |
sudo apt-get install libvlc-dev libvlccore-dev
Expand All @@ -143,7 +141,7 @@ jobs:
name: Codename Engine Debug
path: export/debug/linux/bin/
# - name: Clearing already existing cache
# uses: actions/github-script@v6
# uses: actions/github-script@v9
# with:
# script: |
# const caches = await github.rest.actions.getActionsCacheList({
Expand All @@ -162,7 +160,7 @@ jobs:
# }
# }
# - name: Uploading new cache
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # caching again since for some reason it doesnt work with the first post cache shit
# key: cache-build-linux-debug
Expand Down
70 changes: 30 additions & 40 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,30 @@ jobs:
runs-on: macos-26
steps:
- name: Pulling the new commit
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setting up Haxe
uses: krdlab/setup-haxe@v2
with:
haxe-version: ${{ env.HAXE_VERSION }}
# - name: Restore existing build cache for faster compilation
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # not caching the bin folder to prevent asset duplication and stuff like that
# key: cache-build-mac
# key: cache-build-mac-intel
# path: |
# .haxelib/
# export/release/macos/obj/
- name: Installing/Updating libraries
run: |
brew trust aws/tap
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
arch -x86_64 /usr/local/bin/brew install zlib
haxe -cp commandline -D analyzer-optimize --run Main setup -si
- name: Building the game
run: |
haxelib run lime setup -alias -y -nocffi
haxelib run lime rebuild hxcpp
haxelib run lime rebuild tools
haxelib run lime rebuild mac -64 -nocolor -release
arch -x86_64 haxelib run lime rebuild mac -nocolor -release
arch -x86_64 haxelib run lime build mac -DCOMPILE_EXPERIMENTAL
- name: Tar files
run: tar -zcvf CodenameEngine.tar.gz -C export/release/macos/bin .
Expand All @@ -51,15 +48,15 @@ jobs:
name: Codename Engine-x64
path: CodenameEngine.tar.gz
# - name: Clearing already existing cache
# uses: actions/github-script@v6
# uses: actions/github-script@v9
# with:
# script: |
# const caches = await github.rest.actions.getActionsCacheList({
# owner: context.repo.owner,
# repo: context.repo.repo,
# })
# for (const cache of caches.data.actions_caches) {
# if (cache.key == "cache-build-mac") {
# if (cache.key == "cache-build-mac-intel") {
# console.log('Clearing ' + cache.key + '...')
# await github.rest.actions.deleteActionsCacheById({
# owner: context.repo.owner,
Expand All @@ -70,10 +67,10 @@ jobs:
# }
# }
# - name: Uploading new cache
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # caching again since for some reason it doesnt work with the first post cache shit
# key: cache-build-mac
# key: cache-build-mac-intel
# path: |
# .haxelib/
# export/release/macos/obj/
Expand All @@ -84,25 +81,23 @@ jobs:
runs-on: macos-26
steps:
- name: Pulling the new commit
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setting up Haxe
uses: krdlab/setup-haxe@v2
with:
haxe-version: ${{ env.HAXE_VERSION }}
# - name: Restore existing build cache for faster compilation
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # not caching the bin folder to prevent asset duplication and stuff like that
# key: cache-build-mac
# key: cache-build-mac-arm
# path: |
# .haxelib/
# export/release/macos/obj/
- name: Installing/Updating libraries
run: |
brew trust aws/tap
brew install zlib
haxe -cp commandline -D analyzer-optimize --run Main setup -si
- name: Building the game
run: |
Expand All @@ -119,15 +114,15 @@ jobs:
name: Codename Engine-ARM64
path: CodenameEngine.tar.gz
# - name: Clearing already existing cache
# uses: actions/github-script@v6
# uses: actions/github-script@v9
# with:
# script: |
# const caches = await github.rest.actions.getActionsCacheList({
# owner: context.repo.owner,
# repo: context.repo.repo,
# })
# for (const cache of caches.data.actions_caches) {
# if (cache.key == "cache-build-mac") {
# if (cache.key == "cache-build-mac-arm") {
# console.log('Clearing ' + cache.key + '...')
# await github.rest.actions.deleteActionsCacheById({
# owner: context.repo.owner,
Expand All @@ -138,10 +133,10 @@ jobs:
# }
# }
# - name: Uploading new cache
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # caching again since for some reason it doesnt work with the first post cache shit
# key: cache-build-mac
# key: cache-build-mac-arm
# path: |
# .haxelib/
# export/release/macos/obj/
Expand Down Expand Up @@ -200,31 +195,28 @@ jobs:
needs: universal_build # since its low priority, it'll run after, so actions will concentrate first on normal builds
steps:
- name: Pulling the new commit
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Setting up Haxe
uses: krdlab/setup-haxe@v2
with:
haxe-version: ${{ env.HAXE_VERSION }}
# - name: Restore existing build cache for faster compilation
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # not caching the bin folder to prevent asset duplication and stuff like that
# key: cache-build-mac-debug
# key: cache-build-mac-intel-debug
# path: |
# .haxelib/
# export/debug/macos/obj/
- name: Installing/Updating libraries
run: |
brew trust aws/tap
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
arch -x86_64 /usr/local/bin/brew install zlib
haxe -cp commandline -D analyzer-optimize --run Main setup -si
- name: Building the game
run: |
haxelib run lime setup -alias -y -nocffi
haxelib run lime rebuild hxcpp
haxelib run lime rebuild tools
haxelib run lime rebuild mac -64 -nocolor -release
arch -x86_64 haxelib run lime rebuild mac -nocolor -release
arch -x86_64 haxelib run lime build mac -debug -DCOMPILE_EXPERIMENTAL
- name: Tar files
run: tar -zcvf CodenameEngine.tar.gz -C export/debug/macos/bin .
Expand All @@ -234,15 +226,15 @@ jobs:
name: Codename Engine-x64 Debug
path: CodenameEngine.tar.gz
# - name: Clearing already existing cache
# uses: actions/github-script@v6
# uses: actions/github-script@v9
# with:
# script: |
# const caches = await github.rest.actions.getActionsCacheList({
# owner: context.repo.owner,
# repo: context.repo.repo,
# })
# for (const cache of caches.data.actions_caches) {
# if (cache.key == "cache-build-mac-debug") {
# if (cache.key == "cache-build-mac-intel-debug") {
# console.log('Clearing ' + cache.key + '...')
# await github.rest.actions.deleteActionsCacheById({
# owner: context.repo.owner,
Expand All @@ -253,10 +245,10 @@ jobs:
# }
# }
# - name: Uploading new cache
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # caching again since for some reason it doesnt work with the first post cache shit
# key: cache-build-mac-debug
# key: cache-build-mac-intel-debug
# path: |
# .haxelib/
# export/debug/macos/obj/
Expand All @@ -268,23 +260,21 @@ jobs:
needs: universal_build # since its low priority, it'll run after, so actions will concentrate first on normal builds
steps:
- name: Pulling the new commit
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Setting up Haxe
uses: krdlab/setup-haxe@v2
with:
haxe-version: ${{ env.HAXE_VERSION }}
# - name: Restore existing build cache for faster compilation
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # not caching the bin folder to prevent asset duplication and stuff like that
# key: cache-build-mac-debug
# key: cache-build-mac-arm-debug
# path: |
# .haxelib/
# export/debug/macos/obj/
- name: Installing/Updating libraries
run: |
brew trust aws/tap
brew install zlib
haxe -cp commandline -D analyzer-optimize --run Main setup -si
- name: Building the game
run: |
Expand All @@ -301,15 +291,15 @@ jobs:
name: Codename Engine-ARM64 Debug
path: CodenameEngine.tar.gz
# - name: Clearing already existing cache
# uses: actions/github-script@v6
# uses: actions/github-script@v9
# with:
# script: |
# const caches = await github.rest.actions.getActionsCacheList({
# owner: context.repo.owner,
# repo: context.repo.repo,
# })
# for (const cache of caches.data.actions_caches) {
# if (cache.key == "cache-build-mac-debug") {
# if (cache.key == "cache-build-mac-arm-debug") {
# console.log('Clearing ' + cache.key + '...')
# await github.rest.actions.deleteActionsCacheById({
# owner: context.repo.owner,
Expand All @@ -320,10 +310,10 @@ jobs:
# }
# }
# - name: Uploading new cache
# uses: actions/cache@v4.2.3
# uses: actions/cache@v6
# with:
# # caching again since for some reason it doesnt work with the first post cache shit
# key: cache-build-mac-debug
# key: cache-build-mac-arm-debug
# path: |
# .haxelib/
# export/debug/macos/obj/
Expand Down
Loading