From 38be0f40aaf3ea9be6194ec216a5aa8aff55d21a Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Wed, 17 Apr 2024 17:51:25 +0100 Subject: [PATCH] cleanup --- .github/actions/cleanup/action.yml | 12 ++++++++++++ .github/actions/setup-rust/action.yml | 8 -------- .github/workflows/bench-pr.yml | 5 +++++ .github/workflows/bench.yml | 5 +++++ .github/workflows/ci.yml | 1 + 5 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 .github/actions/cleanup/action.yml diff --git a/.github/actions/cleanup/action.yml b/.github/actions/cleanup/action.yml new file mode 100644 index 0000000000..3a698576df --- /dev/null +++ b/.github/actions/cleanup/action.yml @@ -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" diff --git a/.github/actions/setup-rust/action.yml b/.github/actions/setup-rust/action.yml index 1edcbbf112..abfa720670 100644 --- a/.github/actions/setup-rust/action.yml +++ b/.github/actions/setup-rust/action.yml @@ -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 diff --git a/.github/workflows/bench-pr.yml b/.github/workflows/bench-pr.yml index 01736364f1..a61fa9fc75 100644 --- a/.github/workflows/bench-pr.yml +++ b/.github/workflows/bench-pr.yml @@ -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 diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index f9068a1247..d90abbb7a9 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af36ec855f..b26bf04538 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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