Skip to content

Commit

Permalink
Add cleanup step (#515)
Browse files Browse the repository at this point in the history
* Rollout Cleanup to fix max buffer error
  • Loading branch information
haroldsphinx authored Jan 20, 2022
1 parent 42e0ae7 commit da375ee
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ansible-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
- ansible-runner

steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- bmark
if: github.event.pull_request.draft == false
steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- uses: actions/checkout@v2
with:
ref: main
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
strategy:
fail-fast: true
steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand All @@ -43,7 +50,7 @@ jobs:
.maintain/client_release.sh
- name: Echo Output
run: echo $${{ env.picasso-wasm }}
run: echo ${{ env.picasso-wasm }}

- name: Build wasm with srtool
id: runtime_release
Expand All @@ -52,7 +59,7 @@ jobs:
- name: Upload Compact Picasso wasm # TODO only upload wasm that has changed
uses: svenstaro/upload-release-action@v2
if: "$${{ env.picasso-wasm }} == 1"
if: "${{ env.picasso-wasm }} == 1"
with:
repo_token: ${{ secrets.COMPOSABLE_GITHUB_TOKEN }}
file: ./runtime/picasso/target/srtool/release/wbuild/picasso-runtime/picasso_runtime.compact.wasm
Expand All @@ -62,7 +69,7 @@ jobs:

- name: Upload Compact Dali wasm # TODO only upload wasm that has changed
uses: svenstaro/upload-release-action@v2
if: "$${{ env.dali-wasm }} == 1"
if: "${{ env.dali-wasm }} == 1"
with:
repo_token: ${{ secrets.COMPOSABLE_GITHUB_TOKEN }}
file: ./runtime/dali/target/srtool/release/wbuild/dali-runtime/dali_runtime.compact.wasm
Expand All @@ -72,7 +79,7 @@ jobs:

- name: Upload Compact Composable wasm # TODO only upload wasm that has changed
uses: svenstaro/upload-release-action@v2
if: "$${{ env.composable-wasm }} == 1"
if: "${{ env.composable-wasm }} == 1"
with:
repo_token: ${{ secrets.COMPOSABLE_GITHUB_TOKEN }}
file: ./runtime/picasso/target/srtool/release/wbuild/composable-runtime/composable_runtime.compact.wasm
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
- x64
- sre
steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- uses: actions/checkout@v2
- name: Compile Check with WASM
run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/devnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
group: deploy-devnet
cancel-in-progress: false
steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- uses: actions/checkout@v2

- uses: google-github-actions/setup-gcloud@master
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
strategy:
fail-fast: true
steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/picashot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
- ansible-runner

steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- name: Run ansible playbook
working-directory: "./.maintain/playbooks"
run: |
Expand All @@ -25,6 +31,12 @@ jobs:
- ansible-runner

steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- name: Run ansible playbook
working-directory: "./.maintain/playbooks"
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/simnode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- sre
if: github.event.pull_request.draft == false
steps:
- name: Clean up
continue-on-error: true
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
docker system prune --force --all --volumes
- uses: actions/checkout@v2
with:
ref: main
Expand Down

0 comments on commit da375ee

Please sign in to comment.