Skip to content

Commit

Permalink
chg: switch conda workflow to condadev environment
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Arnold <[email protected]>
  • Loading branch information
sarnold committed Sep 8, 2024
1 parent e975b7c commit 1465367
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/conda.yml → .github/workflows/conda-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CondaDev

on:
workflow_dispatch:
#push:
#branches:
#- master
#pull_request:
push:
branches:
- master
pull_request:

jobs:
build:
Expand All @@ -14,32 +14,29 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['macos-11', 'ubuntu-22.04']
python-version: ['3.8', '3.11']
os: ['ubuntu-22.04', 'macos-13']
python-version: ['3.9', '3.10', '3.11', '3.12']
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
PYTHONIOENCODING: utf-8

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: strict
use-only-tar-bz2: true

- name: Cache conda packages
id: cache
uses: actions/cache@v4
env:
# Increase this value to reset cache and rebuild the env during the PR
CACHE_NUMBER: 3
CACHE_NUMBER: 0
with:
path: /home/runner/conda_pkgs_dir
key:
Expand Down
17 changes: 14 additions & 3 deletions environment.devenv.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
name: pyre2

{% set python_version = os.environ.get("PY_VER", "3.11") %}

channels:
- conda-forge

dependencies:
- python ==3.11
- cmake >=3.18
- cmake>=3.18
- ninja
- ccache
- clangxx_osx-64 # [osx]
- gxx_linux-64 # [linux]
- pybind11-abi
- pybind11-stubgen
- vs2019_win-64 # [win]
- pkgconfig # [win]
- python={{ python_version }}
- cython
- cxx-compiler
- pybind11
- pip
- re2
Expand Down

0 comments on commit 1465367

Please sign in to comment.