;ci: cleanups

This commit is contained in:
Simon Michael 2020-04-20 17:55:31 -07:00
parent b37e929870
commit ae6ec9525a
4 changed files with 19 additions and 18 deletions

View File

@ -1,7 +1,7 @@
# linux CI tests, run "periodically", and on notable push to ci-linux, # linux CI tests, run on a periodic schedule, on notable pull request
# and on notable pull request to master. # to master, and on notable push to ci-linux. Reasonably thorough
# Periodic runs don't use caching. # build/test/benchmark/haddock/functest testing, with all GHC
# Reasonably thorough build/test/benchmark/haddock/functest testing, with all GHC versions # versions. Note periodic runs don't use cache.
name: linux / pull request CI name: linux / pull request CI
@ -23,7 +23,6 @@ on:
- '!**.5' - '!**.5'
- '!**.info' - '!**.info'
- '!**.txt' - '!**.txt'
# and on pushes to ci-linux branch
push: push:
branches: [ ci-linux ] branches: [ ci-linux ]
paths: paths:
@ -128,23 +127,25 @@ jobs:
${{ runner.os }}-hledger-web-stack-work-${{ matrix.plan.key }} ${{ runner.os }}-hledger-web-stack-work-${{ matrix.plan.key }}
${{ runner.os }}-hledger-web-stack-work ${{ runner.os }}-hledger-web-stack-work
# For now due to
# https://github.com/actions/virtual-environments/issues/709
# there's only 4.8G free at this point, and we must free up space.
- name: Free disk space - name: Free disk space
run: | run: |
df -h / df -h /
# 8G:
sudo swapoff -a sudo swapoff -a
df -h /
ls -lh /swapfile
sudo rm -f /swapfile sudo rm -f /swapfile
df -h / # 3G:
sudo apt clean sudo apt clean
df -h / # 3G:
docker image ls -aq docker image ls -aq
docker rmi $(docker image ls -aq) docker rmi $(docker image ls -aq)
df -h / # 1G:
find ~/work/_temp -name "cache.tgz" -exec rm -f {} \; find ~/work/_temp -name "cache.tgz" -exec rm -f {} \;
df -h / # 4G:
sudo rm -rf "/usr/local/share/boost" sudo rm -rf "/usr/local/share/boost"
df -h / # 2G:
sudo rm -rf "$AGENT_TOOLSDIRECTORY" sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h / df -h /

View File

@ -1,5 +1,5 @@
# mac CI tests, run "periodically", and on notable push to ci-mac. # mac CI tests, run on a periodic schedule, and on notable push to
# Periodic runs don't use caching. # ci-mac. Note periodic runs don't use cache.
name: mac CI name: mac CI

View File

@ -1,4 +1,4 @@
# quick CI tests, run on notable push to master # quick CI tests, run on notable push to master.
name: push CI name: push CI

View File

@ -1,6 +1,6 @@
# windows CI tests, run "periodically", and on notable push to ci-windows # windows CI tests, run on a periodic schedule, and on notable push to
# Periodic runs don't use caching. # ci-windows. Note periodic runs don't use cache. Using GHC 8.8.2 for
# Using GHC 8.8.2 to avoid "access violation" error with 8.8.3 # now to avoid https://gitlab.haskell.org/ghc/ghc/issues/17926.
name: windows CI name: windows CI