Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated cache CI to create more space #143

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading