From c36d01230c019d77295f12b6f1ca405bddda43bb Mon Sep 17 00:00:00 2001 From: Hazel <git@ravy.org> Date: Sun, 15 Oct 2023 00:11:53 +0100 Subject: [PATCH 1/2] windows style paths <3 --- .github/workflows/build-shit.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-shit.yml b/.github/workflows/build-shit.yml index 809a8b94b..65b25fd83 100644 --- a/.github/workflows/build-shit.yml +++ b/.github/workflows/build-shit.yml @@ -53,9 +53,8 @@ jobs: token: ${{ secrets.GH_RO_PAT }} - uses: ./.github/actions/setup-haxeshit - name: Make HXCPP cache dir - shell: bash run: | - mkdir -p ${{ runner.temp }}\\hxcpp_cache + mkdir -p ${{ runner.temp }}\hxcpp_cache - name: Restore build cache id: cache-build-win uses: actions/cache@v3 @@ -63,7 +62,7 @@ jobs: path: | .haxelib export - ${{ runner.temp }}\\hxcpp_cache + ${{ runner.temp }}\hxcpp_cache key: ${{ runner.os }}-build-win-${{ github.ref_name }} restore-keys: | ${{ runner.os }}-build-win- From 808490245ae4d2cd7561e25abdb75a58f8f0f1c1 Mon Sep 17 00:00:00 2001 From: Hazel <git@ravy.org> Date: Mon, 16 Oct 2023 18:40:44 +0100 Subject: [PATCH 2/2] pin caches to hash of hmm.json --- .github/actions/setup-haxeshit/action.yml | 2 -- .github/workflows/build-shit.yml | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/actions/setup-haxeshit/action.yml b/.github/actions/setup-haxeshit/action.yml index 0cc544cf7..dcf5fd0a7 100644 --- a/.github/actions/setup-haxeshit/action.yml +++ b/.github/actions/setup-haxeshit/action.yml @@ -23,8 +23,6 @@ runs: with: path: .haxelib key: ${{ runner.os }}-hmm-${{ hashFiles('**/hmm.json') }} - restore-keys: | - ${{ runner.os }}-hmm- - if: ${{ steps.cache-hmm.outputs.cache-hit != 'true' }} name: hmm install run: | diff --git a/.github/workflows/build-shit.yml b/.github/workflows/build-shit.yml index 65b25fd83..ed10cbdc2 100644 --- a/.github/workflows/build-shit.yml +++ b/.github/workflows/build-shit.yml @@ -63,9 +63,7 @@ jobs: .haxelib export ${{ runner.temp }}\hxcpp_cache - key: ${{ runner.os }}-build-win-${{ github.ref_name }} - restore-keys: | - ${{ runner.os }}-build-win- + key: ${{ runner.os }}-build-win-${{ github.ref_name }}-${{ hashFiles('**/hmm.json') }} - name: Build game run: | haxelib run lime build windows -release -DNO_REDIRECT_ASSETS_FOLDER