Skip to content

Commit

Permalink
refactor: Update build configuration for multiple operating systems
Browse files Browse the repository at this point in the history
- Added caching for conda environments to improve build performance.
- Restored Conda environment from cache if available.
- Updated the matrix of operating systems to include macOS 12 and Windows 2019.
  • Loading branch information
rabii-chaarani committed Sep 30, 2024
1 parent e08087c commit 4f39aae
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:
shell: bash -l {0}
run: |
pip install . --user
# Cache conda environments
- name: Cache conda environment
uses: actions/cache@v4
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-conda-
# - name: Test verification
# shell: bash -l {0}
# run: |
Expand Down Expand Up @@ -79,6 +87,16 @@ jobs:
auto-update-conda: true
python-version: ${{ matrix.python-version }}

# Restore Conda environment from cache if available
- name: Cache Conda environment
uses: actions/cache@v3
id: conda-cache
with:
path: ~/.conda/envs
key: conda-${{ matrix.os }}-${{ matrix.python-version }}-env
restore-keys: |
conda-${{ matrix.os }}-${{ matrix.python-version }}-
- uses: actions/checkout@v4
- name: update submodules
# shell: bash -l {0}
Expand Down Expand Up @@ -123,7 +141,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "macos-10", "windows-latest"]
os: ["ubuntu-latest", "macos-latest", "macos-12", "windows-latest", "windows-2019"]
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 4f39aae

Please sign in to comment.