diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b8cb43d389..fdf397ab48 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: @@ -27,8 +31,6 @@ jobs: .haxelib/ export/release/linux/haxe/ export/release/linux/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing LibVLC run: | sudo apt-get install libvlc-dev libvlccore-dev @@ -91,7 +93,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: @@ -101,8 +103,6 @@ jobs: .haxelib/ export/debug/linux/haxe/ export/debug/linux/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - 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 074c752aa6..4b9e36a2e4 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: @@ -27,8 +31,6 @@ jobs: .haxelib/ export/release/macos/haxe/ export/release/macos/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing/Updating libraries run: | haxe -cp commandline -D analyzer-optimize --run Main setup -s @@ -88,7 +90,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: @@ -98,8 +100,6 @@ jobs: .haxelib/ export/debug/macos/haxe/ export/debug/macos/obj/ - - run: | - echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV - name: Installing/Updating libraries run: | haxe -cp commandline -D analyzer-optimize --run Main setup -s diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1f534cfa59..867b165073 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: @@ -27,8 +31,6 @@ jobs: .haxelib/ export/release/windows/haxe/ 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 -s --no-vscheck @@ -86,7 +88,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: @@ -96,8 +98,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 -s --no-vscheck