From 90768d79ad5a0faf2382450413e1bd8cd4ab80ad Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Fri, 8 Mar 2024 13:10:35 +0200 Subject: [PATCH] move to self-hosted runner --- .github/workflows/build.yml | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ebf4a5..21ca63b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: build_matrix: name: "build" needs: [build-yml-check] - runs-on: ubuntu-latest + runs-on: [self-hosted, nixbuilder] timeout-minutes: 360 strategy: matrix: @@ -39,30 +39,6 @@ jobs: group: ${{ github.workflow }}.${{ github.event.pull_request.number || github.ref }}.${{ matrix.arch }}.${{ matrix.target }} cancel-in-progress: true steps: - - name: Maximize space available on rootfs - # Why not use https://github.com/easimon/maximize-build-space directly? - # The reason is: we want to maximize the space on rootfs, since that's - # where the nix store (`/nix/store`) is located. Github action - # https://github.com/easimon/maximize-build-space maximizes - # the builder space on ${GITHUB_WORKSPACE}, which is not what we need. - # Alternatively, we could move the nix store to ${GITHUB_WORKSPACE} - # and use https://github.com/easimon/maximize-build-space as such, but - # we suspect other tooling (e.g. cachix) would not work well with such - # configuration. - run: | - echo "Available storage before cleanup:" - df -h - echo - echo "Removing unwanted software... " - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc - sudo rm -rf /opt/hostedtoolcache/CodeQL - sudo docker image prune --all --force - echo "... done" - echo - echo "Available storage after cleanup:" - df -h - name: Print runner system info run: sudo apt-get update; sudo apt-get install -y inxi; sudo inxi -c0 --width -1 --basic --memory-short - name: Checkout