mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-23 02:19:46 +00:00
build shit caching?
This commit is contained in:
parent
460da18804
commit
72245dd575
57
.github/workflows/build-shit.yml
vendored
57
.github/workflows/build-shit.yml
vendored
|
@ -1,11 +1,12 @@
|
||||||
name: build-upload
|
name: build-upload
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 17 * * *'
|
- cron: '30 17 * * *'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "master"
|
- "master"
|
||||||
workflow_dispatch:
|
|
||||||
jobs:
|
jobs:
|
||||||
check_date:
|
check_date:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -44,6 +45,17 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/setup-haxeshit
|
- uses: ./.github/actions/setup-haxeshit
|
||||||
|
- name: Restore existing build cache for faster compilation
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
# wha?
|
||||||
|
key: cache-build-win
|
||||||
|
path: |
|
||||||
|
.haxelib/
|
||||||
|
export/debug/windows/haxe/
|
||||||
|
export/debug/windows/obj/
|
||||||
|
restore-keys: |
|
||||||
|
cache-build-mac
|
||||||
- name: Build game
|
- name: Build game
|
||||||
run: |
|
run: |
|
||||||
haxelib run lime build windows -debug --times
|
haxelib run lime build windows -debug --times
|
||||||
|
@ -53,38 +65,13 @@ 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
|
||||||
create-nightly-mac:
|
- name: Uploading new cache
|
||||||
needs: check_date
|
uses: actions/cache@v3
|
||||||
if: ${{ needs.check_date.outputs.should_run != 'false'}}
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: ./.github/actions/setup-haxeshit
|
|
||||||
- name: Build game?
|
|
||||||
run: |
|
|
||||||
haxelib run lime build mac -debug --times
|
|
||||||
ls
|
|
||||||
- uses: ./.github/actions/upload-itch
|
|
||||||
with:
|
with:
|
||||||
butler-key: ${{ secrets.BUTLER_API_KEY}}
|
key: cache-build-win
|
||||||
build-dir: export/debug/macos/bin
|
path: |
|
||||||
target: mac
|
.haxelib/
|
||||||
create-nightly-linux:
|
export/debug/macos/haxe/
|
||||||
needs: check_date
|
export/debug/macos/obj/
|
||||||
if: ${{ needs.check_date.outputs.should_run != 'false'}}
|
restore-keys: |
|
||||||
runs-on: ubuntu-latest
|
cache-build-debug
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: ./.github/actions/setup-haxeshit
|
|
||||||
- name: Setting up Linux
|
|
||||||
run: |
|
|
||||||
haxelib run lime setup linux
|
|
||||||
- name: Build game?
|
|
||||||
run: |
|
|
||||||
haxelib run lime build linux -debug --times
|
|
||||||
ls
|
|
||||||
- uses: ./.github/actions/upload-itch
|
|
||||||
with:
|
|
||||||
butler-key: ${{ secrets.BUTLER_API_KEY}}
|
|
||||||
build-dir: export/debug/linux/bin
|
|
||||||
target: linux
|
|
||||||
|
|
Loading…
Reference in a new issue