Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cleanup step #515

Merged
merged 6 commits into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
haroldsphinx marked this conversation as resolved.
Show resolved Hide resolved

- 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