Clean things up before starting the build
In case the queue never is empty we'll never clean things up.. so do this at the start We now only download the files that are actually needed, so it's not that important anymore when we clean things up.
This commit is contained in:
parent
f264829cb4
commit
dcf3c2cf21
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -44,6 +44,13 @@ jobs:
|
|||||||
If ($skipBuild) {echo '::set-output name=skip-build::true'}
|
If ($skipBuild) {echo '::set-output name=skip-build::true'}
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
- name: Clean up assets
|
||||||
|
if: steps.check.outputs.skip-build != 'true'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
python autobuild.py clean-assets
|
||||||
|
|
||||||
- name: Show build queue
|
- name: Show build queue
|
||||||
if: steps.check.outputs.skip-build != 'true'
|
if: steps.check.outputs.skip-build != 'true'
|
||||||
env:
|
env:
|
||||||
@ -80,10 +87,3 @@ jobs:
|
|||||||
$MSYS2_ROOT=(msys2 -c 'cygpath -w /')
|
$MSYS2_ROOT=(msys2 -c 'cygpath -w /')
|
||||||
Get-PSDrive -PSProvider FileSystem
|
Get-PSDrive -PSProvider FileSystem
|
||||||
python autobuild.py build "$MSYS2_ROOT" "$BUILD_ROOT"
|
python autobuild.py build "$MSYS2_ROOT" "$BUILD_ROOT"
|
||||||
|
|
||||||
- name: Clean up assets
|
|
||||||
if: steps.check.outputs.skip-build != 'true'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
python autobuild.py clean-assets
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user