cvw/.github/workflows/install.yml

117 lines
4.9 KiB
YAML
Raw Normal View History

2024-07-16 07:14:57 +00:00
name: Installation
on: [workflow_dispatch]
jobs:
2024-07-16 07:14:57 +00:00
ubuntu_install:
name: Test installation on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
2024-07-16 07:33:56 +00:00
fail-fast: false
2024-07-16 07:14:57 +00:00
matrix:
2024-07-17 08:25:06 +00:00
os: ["ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"]
steps:
2024-07-06 13:52:43 +00:00
- name: Free up storage
run: |
2024-07-17 08:25:06 +00:00
df -h
removePacks=( '^llvm-.*' 'php.*' '^mongodb-.*' '^mysql-.*' '^dotnet-sdk-.*' 'azure-cli' 'google-cloud-cli' 'google-chrome-stable' 'firefox' '^powershell*' 'microsoft-edge-stable' 'mono-devel' 'hhvm' )
for pack in "${removePacks[@]}"; do
sudo apt-get purge -y $pack &> /dev/null || true
done
sudo apt-get autoremove -y &> /dev/null
sudo apt-get clean &> /dev/null
2024-07-06 13:52:43 +00:00
sudo rm -rf /usr/local/lib/android &> /dev/null
sudo rm -rf /usr/share/dotnet &> /dev/null
2024-07-17 08:25:06 +00:00
sudo rm -rf /usr/share/swift &> /dev/null
sudo rm -rf /usr/share/miniconda &> /dev/null
sudo rm -rf /usr/share/az* &> /dev/null
sudo rm -rf /usr/share/gradle-* &> /dev/null
sudo rm -rf /usr/share/sbt &> /dev/null
2024-07-06 13:52:43 +00:00
sudo rm -rf /opt/ghc &> /dev/null
2024-07-17 08:25:06 +00:00
sudo rm -rf /usr/local/.ghcup &> /dev/null
sudo rm -rf /usr/local/share/powershell &> /dev/null
sudo rm -rf /usr/local/lib/node_modules &> /dev/null
sudo rm -rf /usr/local/julia* &> /dev/null
sudo rm -rf /usr/local/share/chromium &> /dev/null
sudo rm -rf /usr/local/share/vcpkg &> /dev/null
sudo rm -rf /usr/local/games &> /dev/null
sudo rm -rf /usr/local/sqlpackage &> /dev/null
sudo rm -rf /usr/lib/google-cloud-sdk &> /dev/null
sudo rm -rf /usr/lib/jvm &> /dev/null
sudo rm -rf /usr/lib/mono &> /dev/null
sudo rm -rf /usr/lib/R &> /dev/null
sudo rm -rf /usr/lib/postgresql &> /dev/null
sudo rm -rf /usr/lib/heroku &> /dev/null
sudo rm -rf /usr/lib/llvm* &> /dev/null
sudo rm -rf /usr/lib/firefox &> /dev/null
sudo rm -rf /opt/hostedtoolcache &> /dev/null
2024-07-06 13:52:43 +00:00
sudo docker image prune --all --force &> /dev/null
2024-07-06 13:45:34 +00:00
df -h
2024-07-06 13:52:43 +00:00
- uses: actions/checkout@v4
with:
submodules: recursive
2024-07-06 13:52:43 +00:00
- name: install
run: sudo ./bin/wally-tool-chain-install.sh
- name: setup
run: source setup.sh
- name: make tests
run: make
- name: regresssion
run: regression-wally
2024-07-17 08:25:06 +00:00
2024-07-16 07:14:57 +00:00
rhel_family_install:
name: Test installation on ${{ matrix.os }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.os }}
options: --privileged --mount type=bind,source=/,target=/host
strategy:
2024-07-16 07:33:56 +00:00
fail-fast: false
2024-07-16 07:14:57 +00:00
matrix:
2024-07-17 08:25:06 +00:00
os: ["rockylinux:8", "rockylinux:9", "almalinux:8", "almalinux:9"]
2024-07-16 07:14:57 +00:00
steps:
2024-07-16 14:20:29 +00:00
- run: dnf install -y sudo git
2024-07-16 07:14:57 +00:00
- name: free up storage
run: |
df -h
2024-07-17 08:25:06 +00:00
sudo rm -rf /host/usr/local/lib/android &> /dev/null
2024-07-16 07:14:57 +00:00
sudo rm -rf /host/usr/share/dotnet &> /dev/null
2024-07-17 08:25:06 +00:00
sudo rm -rf /host/usr/share/swift &> /dev/null
sudo rm -rf /host/usr/share/miniconda &> /dev/null
sudo rm -rf /host/usr/share/az* &> /dev/null
sudo rm -rf /host/usr/share/gradle-* &> /dev/null
sudo rm -rf /host/usr/share/sbt &> /dev/null
2024-07-16 07:14:57 +00:00
sudo rm -rf /host/opt/ghc &> /dev/null
2024-07-17 08:25:06 +00:00
sudo rm -rf /host/usr/local/.ghcup &> /dev/null
sudo rm -rf /host/usr/local/share/powershell &> /dev/null
sudo rm -rf /host/usr/local/lib/node_modules &> /dev/null
sudo rm -rf /host/usr/local/julia* &> /dev/null
sudo rm -rf /host/usr/local/share/chromium &> /dev/null
sudo rm -rf /host/usr/local/share/vcpkg &> /dev/null
sudo rm -rf /host/usr/local/games &> /dev/null
sudo rm -rf /host/usr/local/sqlpackage &> /dev/null
sudo rm -rf /host/usr/lib/google-cloud-sdk &> /dev/null
sudo rm -rf /host/usr/lib/jvm &> /dev/null
sudo rm -rf /host/usr/lib/mono &> /dev/null
sudo rm -rf /host/usr/lib/R &> /dev/null
sudo rm -rf /host/usr/lib/postgresql &> /dev/null
sudo rm -rf /host/usr/lib/heroku &> /dev/null
sudo rm -rf /host/usr/lib/llvm* &> /dev/null
sudo rm -rf /host/usr/lib/firefox &> /dev/null
sudo rm -rf /host/opt/hostedtoolcache &> /dev/null
2024-07-16 07:14:57 +00:00
df -h
- uses: actions/checkout@v4
with:
submodules: recursive
2024-07-16 07:14:57 +00:00
- name: install
run: ./bin/wally-tool-chain-install.sh
- name: make tests
2024-07-17 08:25:06 +00:00
run: |
source setup.sh
make
- name: regresssion
2024-07-17 08:25:06 +00:00
run: |
source setup.sh
regression-wally