Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Apr 17, 2024
1 parent e30af56 commit 38be0f4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .github/actions/cleanup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Cleanup'
description: 'Cleanup workers for more space'
runs:
using: "composite"
steps:
- name: Cleanup workers
shell: bash
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
8 changes: 0 additions & 8 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ runs:
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV
- name: Cleanup workers
shell: bash
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Export Path
shell: bash
run: echo "PATH=$PATH" >> $GITHUB_ENV
5 changes: 5 additions & 0 deletions .github/workflows/bench-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ jobs:
with:
submodules: recursive

- uses: ./.github/actions/cleanup
- uses: ./.github/actions/setup-zig
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-python

- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Bench - Vortex
run: cargo bench | tee bench.txt
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ jobs:
with:
submodules: recursive

- uses: ./.github/actions/cleanup
- uses: ./.github/actions/setup-zig
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-python

- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Bench - Vortex
run: cargo bench | tee bench.txt
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/cleanup
- uses: ./.github/actions/setup-zig
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-python
Expand Down

0 comments on commit 38be0f4

Please sign in to comment.