From 31dd26babe980718ff7ecfcf5fc1a18dab5092d8 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sat, 7 Jan 2023 19:45:33 +0100 Subject: [PATCH] i hope it works --- .github/workflows/linux.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index daf913e8..becc7096 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -31,13 +31,13 @@ jobs: run: | mkdir -p ".haxelib" haxelib setup ".haxelib" - # - name: Installing libraries - # run: | - # ls - # haxe -cp ./update -D analyzer-optimize -main Update --interp - # - name: Building the game - # run: | - # haxelib run lime build linux + - name: Installing libraries + run: | + ls + haxe -cp ./update -D analyzer-optimize -main Update --interp + - name: Building the game + run: | + haxelib run lime build linux - name: Artifact upload (entire build) uses: actions/upload-artifact@v2 with: @@ -57,5 +57,13 @@ jobs: repo: context.repo.repo, }) for (const cache of caches.data.actions_caches) { - console.log(cache) + if (cache.key == "cache-build-linux") { + console.log('Clearing ' + cache.key + '...') + github.rest.actions.deleteActionsCacheById({ + owner: context.repo.owner, + repo: context.repo.repo, + cache_id: cache.id, + }) + console.log("Cache cleared.") + } } \ No newline at end of file