From 0bd8d9330ccc58548c2e62f4b94c3c58a4342ac2 Mon Sep 17 00:00:00 2001 From: Calvin Pieters Date: Tue, 14 Nov 2023 09:46:55 +0000 Subject: [PATCH] Updated cache CI to create more space Removing unrequired software Updating actions --- .github/workflows/update-cache.yml | 31 ++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/update-cache.yml b/.github/workflows/update-cache.yml index 51c2f0a8..ff6e5ee8 100644 --- a/.github/workflows/update-cache.yml +++ b/.github/workflows/update-cache.yml @@ -14,18 +14,29 @@ jobs: run: shell: bash -el {0} steps: + - name: Clean Ubuntu Image + uses: kfir4444/free-disk-space@main + with: + # This may remove tools actually needed - currently does not + tool-cache: true + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + - name: Checkout T3 - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 - name: Cache RMG id: cache-rmg - uses: actions/cache@v2 + uses: actions/cache@v3.3.2 with: path: RMG-Py key: ${{ runner.os }}-rmg-main - name: Checkout RMG - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 with: repository: ReactionMechanismGenerator/RMG-Py path: RMG-Py @@ -34,13 +45,13 @@ jobs: - name: Cache RMG-database id: cache-rmg-db - uses: actions/cache@v2 + uses: actions/cache@v3.3.2 with: path: RMG-database key: ${{ runner.os }}-rmgdb-main - name: Checkout RMG-database - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 with: repository: ReactionMechanismGenerator/RMG-database path: RMG-database @@ -49,13 +60,13 @@ jobs: - name: Cache ARC id: cache-arc - uses: actions/cache@v2 + uses: actions/cache@v3.3.2 with: path: ARC key: ${{ runner.os }}-arc-main - name: Checkout ARC - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 with: repository: ReactionMechanismGenerator/ARC path: ARC @@ -63,7 +74,7 @@ jobs: fetch-depth: 1 - name: Setup RMG-Py Env - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.2.0 with: miniforge-variant: Mambaforge miniforge-version: latest @@ -71,7 +82,7 @@ jobs: use-mamba: true - name: Cache RMG-Py env - uses: actions/cache@v2 + uses: actions/cache@v3.3.2 with: path: ${{ env.CONDA }}/envs/rmg_env key: @@ -126,7 +137,7 @@ jobs: mamba install -c anaconda pyyaml -y - name: Cache Conda Packages - uses: actions/cache@v2 + uses: actions/cache@v3.3.2 env: CACHE_NUMBER: 0 with: