From 39e8b9a2e36ea9fc47ed4d98eb0fddd6c4ca8e02 Mon Sep 17 00:00:00 2001 From: Marijan <77665447+mc2eqe@users.noreply.github.com> Date: Wed, 25 Oct 2023 11:30:05 +0200 Subject: [PATCH] Change to custom runner and enable sccache (#1065) * Change to custom runner and enable sccache * Move tests to bare metal --- .github/workflows/base_checks.yaml | 19 ++++++++----------- .github/workflows/tests.yaml | 11 +---------- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/base_checks.yaml b/.github/workflows/base_checks.yaml index 89c36530d6..38e2c5357d 100644 --- a/.github/workflows/base_checks.yaml +++ b/.github/workflows/base_checks.yaml @@ -12,22 +12,19 @@ concurrency: jobs: compile-and-check: - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - - name: Free disk space - run: | - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h - - name: Checkout the source code uses: actions/checkout@v3 - name: Install deps - run: sudo apt -y install protobuf-compiler + run: | + sudo apt -y install protobuf-compiler pkg-config + if ! command -v sccache; then + cargo install sccache --locked + fi + echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV + echo "SCCACHE_CACHE_SIZE=100G" >> $GITHUB_ENV - name: Install & display rust toolchain run: rustup show diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 10fe04f9b4..6884a0de5d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -12,17 +12,8 @@ concurrency: jobs: test-runtimes: - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - - name: Free disk space - run: | - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h - - name: Checkout the source code uses: actions/checkout@v3