mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
Add cleanup script to the beginning of all workflows to ensure a clean slate (#7515)
This commit is contained in:
parent
447d038848
commit
f708500f8c
@ -34,6 +34,10 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Cleanup any leftovers that exist from previous runs
|
||||
run: bash build_scripts/clean-runner.sh || true
|
||||
|
||||
# Create our own venv outside of the git directory JUST for getting the ACTUAL version so that install can't break it
|
||||
- name: Create installer version number
|
||||
id: version_number
|
||||
|
@ -36,6 +36,9 @@ jobs:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Cleanup any leftovers that exist from previous runs
|
||||
run: bash build_scripts/clean-runner.sh || true
|
||||
|
||||
- name: Setup Python environment
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
|
@ -36,6 +36,9 @@ jobs:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Cleanup any leftovers that exist from previous runs
|
||||
run: bash build_scripts/clean-runner.sh || true
|
||||
|
||||
- name: Setup Python environment
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
|
15
.github/workflows/build-macos-m1-installer.yml
vendored
15
.github/workflows/build-macos-m1-installer.yml
vendored
@ -27,24 +27,15 @@ jobs:
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
- name: Cleanup any leftovers that exist from previous runs
|
||||
run: |
|
||||
rm -rf ../venv || true
|
||||
rm -rf venv || true
|
||||
rm -rf chia_blockchain.egg-info || true
|
||||
rm -rf build_scripts/final_installer || true
|
||||
rm -rf build_scripts/dist || true
|
||||
rm -rf build_scripts/pyinstaller || true
|
||||
rm -rf chia-blockchain-gui/build || true
|
||||
rm -rf chia-blockchain-gui/daemon || true
|
||||
rm -rf chia-blockchain-gui/node_modules || true
|
||||
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Cleanup any leftovers that exist from previous runs
|
||||
run: bash build_scripts/clean-runner.sh || true
|
||||
|
||||
- name: Test for secrets access
|
||||
id: check_secrets
|
||||
shell: bash
|
||||
|
12
build_scripts/clean-runner.sh
Normal file
12
build_scripts/clean-runner.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Cleans up files/directories that may be left over from previous runs for a clean slate before starting a new build
|
||||
|
||||
rm -rf ../venv || true
|
||||
rm -rf venv || true
|
||||
rm -rf chia_blockchain.egg-info || true
|
||||
rm -rf build_scripts/final_installer || true
|
||||
rm -rf build_scripts/dist || true
|
||||
rm -rf build_scripts/pyinstaller || true
|
||||
rm -rf chia-blockchain-gui/build || true
|
||||
rm -rf chia-blockchain-gui/daemon || true
|
||||
rm -rf chia-blockchain-gui/node_modules || true
|
Loading…
Reference in New Issue
Block a user