mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-05-24 08:02:22 +00:00
windows caching maybe?
This commit is contained in:
parent
939171cb1d
commit
007902868b
31
.github/workflows/build-shit.yml
vendored
31
.github/workflows/build-shit.yml
vendored
|
@ -1,11 +1,7 @@
|
||||||
name: build-upload
|
name: build-upload
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
|
||||||
- cron: '30 17 * * *'
|
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- "master"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_date:
|
check_date:
|
||||||
|
@ -54,7 +50,8 @@ jobs:
|
||||||
.haxelib/
|
.haxelib/
|
||||||
export/debug/windows/haxe/
|
export/debug/windows/haxe/
|
||||||
export/debug/windows/obj/
|
export/debug/windows/obj/
|
||||||
|
restore-keys: |
|
||||||
|
cache-build-windows
|
||||||
- uses: ./.github/actions/setup-haxeshit
|
- uses: ./.github/actions/setup-haxeshit
|
||||||
- name: Build game
|
- name: Build game
|
||||||
run: |
|
run: |
|
||||||
|
@ -65,11 +62,33 @@ jobs:
|
||||||
butler-key: ${{ secrets.BUTLER_API_KEY}}
|
butler-key: ${{ secrets.BUTLER_API_KEY}}
|
||||||
build-dir: export/debug/windows/bin
|
build-dir: export/debug/windows/bin
|
||||||
target: win
|
target: win
|
||||||
|
- name: Clearing already existing cache
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
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-windows") {
|
||||||
|
console.log('Clearing ' + cache.key + '...')
|
||||||
|
await github.rest.actions.deleteActionsCacheById({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
cache_id: cache.id,
|
||||||
|
})
|
||||||
|
console.log("Cache cleared.")
|
||||||
|
}
|
||||||
|
}
|
||||||
- name: Uploading new cache
|
- name: Uploading new cache
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
with:
|
with:
|
||||||
key: ${{ steps.cache-windows-shit.outputs.cache-primary-key }}
|
# caching again since for some reason it doesnt work with the first post cache shit
|
||||||
|
key: cache-build-windows
|
||||||
path: |
|
path: |
|
||||||
.haxelib/
|
.haxelib/
|
||||||
export/debug/windows/haxe/
|
export/debug/windows/haxe/
|
||||||
export/debug/windows/obj/
|
export/debug/windows/obj/
|
||||||
|
restore-keys: |
|
||||||
|
cache-build-windows
|
||||||
|
|
Loading…
Reference in a new issue