Skip to content

Commit

Permalink
ci: clean up everything before each run (runfinch#30)
Browse files Browse the repository at this point in the history
## Summary

Currently if a run is canceled midway, the environment is left untidied,
which may cause subsequent runs to fail. Take this
[run](https://github.com/runfinch/finch/actions/runs/3527869248/jobs/5917387104)
for example, `_output` was not cleaned up, so the run failed.

## License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Hsing-Yu (David) Chen <[email protected]>
  • Loading branch information
davidhsingyuchen authored Nov 23, 2022
1 parent 99a0c88 commit 7e549b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ jobs:
run: |
sudo rm -rf /opt/finch
sudo rm -rf ~/.finch
sudo rm -rf ./_output
if pgrep '^qemu-system'; then
sudo pkill '^qemu-system'
fi
if pgrep '^socket_vmnet'; then
sudo pkill '^socket_vmnet'
fi
- run: brew install go lz4 automake autoconf libtool
- name: Build project
run: |
Expand Down

0 comments on commit 7e549b3

Please sign in to comment.