From 6a56ef32fd70637a2f2ce01d526e2902da47af3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Fri, 6 Dec 2024 12:21:21 -0500 Subject: [PATCH] github: Simplify workflow for self-hosted runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- .github/workflows/tests.yml | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5dfd927..28f345d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,41 +22,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - with: - detached: true - - - name: Performance tuning - run: | - set -eux - # optimize ext4 FSes for performance, not reliability - for fs in $(findmnt --noheading --type ext4 --list --uniq | awk '{print $1}'); do - # nombcache and data=writeback cannot be changed on remount - sudo mount -o remount,noatime,barrier=0,commit=6000 "${fs}" || true - done - - # disable dpkg from calling sync() - echo "force-unsafe-io" | sudo tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io - - - name: Reclaim some space - run: | - set -eux - - sudo apt-get autopurge --yes snapd moby-containerd docker - sudo ip link delete docker0 - sudo nft flush ruleset - - # This was inspired from https://github.com/easimon/maximize-build-space - df -h / - # dotnet - sudo rm -rf /usr/share/dotnet - # android - sudo rm -rf /usr/local/lib/android - # haskell - sudo rm -rf /opt/ghc - df -h / - - name: Setup Incus run: | curl https://pkgs.zabbly.com/get/incus-daily | sudo sh