diff --git a/.github/actions/setup-runner/action.yml b/.github/actions/setup-runner/action.yml index 3ec30d90d56..eea35315f57 100644 --- a/.github/actions/setup-runner/action.yml +++ b/.github/actions/setup-runner/action.yml @@ -11,6 +11,7 @@ runs: - name: Memory report shell: bash run: | + echo "::group::Memory and disk" echo "Memory and swap:" free echo @@ -19,6 +20,7 @@ runs: echo "Available storage:" df -h echo + echo "::endgroup::" - name: Add 8G more swap if: ${{ inputs.more-memory != 'false' }} shell: bash @@ -31,6 +33,7 @@ runs: if: ${{ inputs.more-memory != 'false' }} shell: bash run: | + echo "::group::Memory and disk after swap enabled" echo "Memory report after adding more swap:" free echo @@ -39,7 +42,47 @@ runs: echo "Available storage:" df -h echo + echo "::endgroup::" - name: Update /etc/hosts shell: bash - run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts + run: | + echo "::group::Contents of /etc/hosts" + echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts + echo "::endgroup::" + + - name: Setup docker.io mirror + shell: bash + run: | + cat > docker-io-mirror.conf <