Skip to content

Commit

Permalink
Updated cache CI to create more space
Browse files Browse the repository at this point in the history
Removing unrequired software
Updating actions
  • Loading branch information
calvinp0 committed Nov 14, 2023
1 parent 6d1b6d6 commit 0bd8d93
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/update-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -49,29 +60,29 @@ 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
ref: main
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
activate-environment: rmg_env
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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0bd8d93

Please sign in to comment.