diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 64f64053a..1e53bcce9 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -4,6 +4,10 @@ on: push: workflow_dispatch: +env: + HAXE_VERSION: 4.3.7 + HXCPP_COMPILE_CACHE: ${{ github.workspace }}/.hxcpp_cache + jobs: build: name: Linux Build @@ -17,7 +21,7 @@ jobs: - name: Setting up Haxe uses: krdlab/setup-haxe@v2 with: - haxe-version: 4.3.7 + haxe-version: ${{ env.HAXE_VERSION }} # - name: Restore existing build cache for faster compilation # uses: actions/cache@v4.2.3 # with: @@ -26,8 +30,6 @@ jobs: # path: | # .haxelib/ # export/release/linux/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing Packages for Building Lime (TEMPORARY) run: | sudo apt-get update @@ -36,7 +38,7 @@ jobs: 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 \ - g++-multilib gcc-multilib + zlib1g-dev - name: Installing LibVLC run: | sudo apt-get install libvlc-dev libvlccore-dev @@ -102,7 +104,7 @@ jobs: - name: Setting up Haxe uses: krdlab/setup-haxe@v2 with: - haxe-version: 4.3.7 + haxe-version: ${{ env.HAXE_VERSION }} # - name: Restore existing build cache for faster compilation # uses: actions/cache@v4.2.3 # with: @@ -111,8 +113,6 @@ jobs: # path: | # .haxelib/ # export/debug/linux/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing Packages for Building Lime (TEMPORARY) run: | sudo apt-get update @@ -121,7 +121,7 @@ jobs: 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 \ - g++-multilib gcc-multilib + zlib1g-dev - name: Installing LibVLC run: | sudo apt-get install libvlc-dev libvlccore-dev diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b0b76fa6d..d32e48754 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -4,6 +4,10 @@ on: push: workflow_dispatch: +env: + HAXE_VERSION: 4.3.7 + HXCPP_COMPILE_CACHE: ${{ github.workspace }}/.hxcpp_cache + jobs: build: name: Mac OS Build @@ -17,7 +21,7 @@ jobs: - name: Setting up Haxe uses: krdlab/setup-haxe@v2 with: - haxe-version: 4.3.7 + haxe-version: ${{ env.HAXE_VERSION }} # - name: Restore existing build cache for faster compilation # uses: actions/cache@v4.2.3 # with: @@ -26,10 +30,10 @@ jobs: # path: | # .haxelib/ # export/release/macos/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing/Updating libraries run: | + brew untap aws/tap + brew install zlib haxe -cp commandline -D analyzer-optimize --run Main setup -si - name: Building the game run: | @@ -90,7 +94,7 @@ jobs: - name: Setting up Haxe uses: krdlab/setup-haxe@v2 with: - haxe-version: 4.3.7 + haxe-version: ${{ env.HAXE_VERSION }} # - name: Restore existing build cache for faster compilation # uses: actions/cache@v4.2.3 # with: @@ -99,10 +103,10 @@ jobs: # path: | # .haxelib/ # export/debug/macos/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing/Updating libraries run: | + brew untap aws/tap + brew install zlib haxe -cp commandline -D analyzer-optimize --run Main setup -si - name: Building the game run: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0d390f403..46a51da3e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -4,6 +4,10 @@ on: push: workflow_dispatch: +env: + HAXE_VERSION: 4.3.7 + HXCPP_COMPILE_CACHE: ${{ github.workspace }}/.hxcpp_cache + jobs: build: name: Windows Build @@ -17,7 +21,7 @@ jobs: - name: Setting up Haxe uses: krdlab/setup-haxe@v2 with: - haxe-version: 4.3.7 + haxe-version: ${{ env.HAXE_VERSION }} # - name: Restore existing build cache for faster compilation # uses: actions/cache@v4.2.3 # with: @@ -26,8 +30,6 @@ jobs: # path: | # .haxelib/ # export/release/windows/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing/Updating libraries run: | haxe -cp commandline -D analyzer-optimize --run Main setup -si --no-vscheck @@ -90,7 +92,7 @@ jobs: - name: Setting up Haxe uses: krdlab/setup-haxe@v2 with: - haxe-version: 4.3.7 + haxe-version: ${{ env.HAXE_VERSION }} # - name: Restore existing build cache for faster compilation # uses: actions/cache@v4.2.3 # with: @@ -100,8 +102,6 @@ jobs: # .haxelib/ # export/debug/windows/haxe/ # export/debug/windows/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing/Updating libraries run: | haxe -cp commandline -D analyzer-optimize --run Main setup -si --no-vscheck